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 targos committed Feb 10, 2019
1 parent d123f94 commit 2b48a38
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 @@ -1539,7 +1539,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 2b48a38

Please sign in to comment.