mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
fs: remove redundant callback check
PR-URL: https://github.com/nodejs/node/pull/25160 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
d123f944a2
commit
2b48a381b9
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user