Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
test: standard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Aug 8, 2018
1 parent b4ed34d commit 4cab93f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/node/child_process.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const wrap = require('spawn-wrap')
// const wrap = require('spawn-wrap')

module.exports.overrideNode = overrideNode
function overrideNode () {
Expand Down
8 changes: 4 additions & 4 deletions lib/node/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function overrideNode () {
const {stat} = fs
fs.stat = function (p, callback) {
const resolved = pkgmap.resolve(p)
if (resolved == null) { return lstat(p, callback) }
if (resolved == null) { return stat(p, callback) }
if (!resolved) {
return notFoundError(p, callback)
}
Expand Down Expand Up @@ -195,8 +195,8 @@ function overrideNode () {
})
}

const {exists} = fs
fs.exists = function (p, callback) {
const {exists} = fs // eslint-disable-line
fs.exists = function (p, callback) { // eslint-disable-line
const resolved = pkgmap.resolve(p)
// pkgmap.resolve distinguishes returns null if no valid pkgmap was found,
// and false if a map was found, but the file was not in it.
Expand All @@ -207,7 +207,7 @@ function overrideNode () {
}, callback)
}

fs.exists[util.promisify.custom] = async function (p) {
fs.exists[util.promisify.custom] = async (p) => { // eslint-disable-line
const resolved = pkgmap.resolve(p)
// pkgmap.resolve distinguishes returns null if no valid pkgmap was found,
// and false if a map was found, but the file was not in it.
Expand Down
1 change: 0 additions & 1 deletion lib/node/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function overrideNode () {
} = process.binding('fs')
const preserveSymlinks = !!process.binding('config').preserveSymlinks
const preserveSymlinksMain = !!process.binding('config').preserveSymlinksMain
const vm = require('vm')

const CHAR_FORWARD_SLASH = '/'.charCodeAt(0)

Expand Down

0 comments on commit 4cab93f

Please sign in to comment.