greenkeeperio / greenkeeper-lockfile

:lock: Your lockfile, up to date, all the time
https://greenkeeper.io
183 stars 73 forks source link

refactor: Use fs#existsSync instead of fs#readFileSync #59

Closed sudo-suhas closed 6 years ago

sudo-suhas commented 7 years ago

While fs#exists is deprecated, fs#existsSync is not. This uses existsSync instead of readFileSync with try-catch to determine which lock files exist.

sudo-suhas commented 6 years ago

ping @boennemann @christophwitzko

christophwitzko commented 6 years ago

Thank you for your contribution! 👍