fs: Remove unused branches
authorBenjamin Gruenbaum <inglor@gmail.com>
Tue, 22 Mar 2016 10:11:40 +0000 (12:11 +0200)
committerMyles Borins <mborins@us.ibm.com>
Fri, 8 Apr 2016 20:42:49 +0000 (16:42 -0400)
commit56dda6f33625148387bec2c0b8fcb9b237605017
treef25b5aeab2e66dbc6e3425a82ec44506c9c0bf5f
parentfeedca787940fe4bf036b6df767335eda866630f
fs: Remove unused branches

a few places the code was refactored to use `maybeCallback` which
always returns a function. Checking for `if (callback)` always
returns true anyway.

PR-URL: https://github.com/nodejs/node/pull/5289
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
lib/fs.js