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:
ZYSzys authored and Michaël Zasso committed 2019-02-10 11:59:31 +01:00
1 parent d123f944a2
commit 2b48a381b9
1 file changed
+1 -1
+1 -1
View File
@@ -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