Skip to content

Commit 2b48a38

Browse files
ZYSzystargos
authored andcommitted
fs: remove redundant callback check
PR-URL: #25160 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent d123f94 commit 2b48a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ realpathSync.native = (path, options) => {
15391539

15401540

15411541
function realpath(p, options, callback) {
1542-
callback = maybeCallback(typeof options === 'function' ? options : callback);
1542+
callback = typeof options === 'function' ? options : maybeCallback(callback);
15431543
if (!options)
15441544
options = emptyObj;
15451545
else

0 commit comments

Comments
 (0)