Skip to content

Commit e34d41e

Browse files
ZYSzyslpinca
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 00366e2 commit e34d41e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ realpathSync.native = (path, options) => {
15701570

15711571

15721572
function realpath(p, options, callback) {
1573-
callback = maybeCallback(typeof options === 'function' ? options : callback);
1573+
callback = typeof options === 'function' ? options : maybeCallback(callback);
15741574
if (!options)
15751575
options = emptyObj;
15761576
else

0 commit comments

Comments
 (0)