Skip to content

Commit f4a880d

Browse files
authored
Remove check for fs.realpath.native support, since it's everywhere (#887)
1 parent 04282cd commit f4a880d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/fs/index.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Object.keys(fs).forEach(key => {
6161
api.forEach(method => {
6262
exports[method] = u(fs[method])
6363
})
64+
exports.realpath.native = u(fs.realpath.native)
6465

6566
// We differ from mz/fs in that we still ship the old, broken, fs.exists()
6667
// since we are a drop-in replacement for the native module
@@ -123,8 +124,3 @@ if (typeof fs.writev === 'function') {
123124
})
124125
}
125126
}
126-
127-
// fs.realpath.native only available in Node v9.2+
128-
if (typeof fs.realpath.native === 'function') {
129-
exports.realpath.native = u(fs.realpath.native)
130-
}

0 commit comments

Comments
 (0)