paulmillr / readdirp

Recursive version of fs.readdir with streaming api.
https://paulmillr.com
MIT License
378 stars 51 forks source link

index.js: simplify check #127

Closed XhmikosR closed 4 years ago

XhmikosR commented 4 years ago

Alternatively we could do root === null || typeof root === 'undefined' or just root == null, but this seems simpler. Your call though.