Skip to content

Commit

Permalink
fs: remove redundant callback check
Browse files Browse the repository at this point in the history
PR-URL: #25160
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
ZYSzys authored and lpinca committed Feb 9, 2019
1 parent 00366e2 commit e34d41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ realpathSync.native = (path, options) => {


function realpath(p, options, callback) {
callback = maybeCallback(typeof options === 'function' ? options : callback);
callback = typeof options === 'function' ? options : maybeCallback(callback);
if (!options)
options = emptyObj;
else
Expand Down

0 comments on commit e34d41e

Please sign in to comment.