Skip to content

Commit

Permalink
Remove check for fs.realpath.native support, since it's everywhere (#887
Browse files Browse the repository at this point in the history
)
  • Loading branch information
RyanZim committed Apr 6, 2021
1 parent 04282cd commit f4a880d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/fs/index.js
Expand Up @@ -61,6 +61,7 @@ Object.keys(fs).forEach(key => {
api.forEach(method => {
exports[method] = u(fs[method])
})
exports.realpath.native = u(fs.realpath.native)

// We differ from mz/fs in that we still ship the old, broken, fs.exists()
// since we are a drop-in replacement for the native module
Expand Down Expand Up @@ -123,8 +124,3 @@ if (typeof fs.writev === 'function') {
})
}
}

// fs.realpath.native only available in Node v9.2+
if (typeof fs.realpath.native === 'function') {
exports.realpath.native = u(fs.realpath.native)
}

0 comments on commit f4a880d

Please sign in to comment.