Remove unnecessary `path.sep` usage

master
Sven Slootweg 8 years ago
parent 08c53364d7
commit b7de442f25

@ -6,7 +6,7 @@ const defaultValue = require("default-value");
let defaultCheckers = {
"package.json": function(directory) {
let parentPackageFile = path.join(directory, `..${path.sep}..${path.sep}package.json`);
let parentPackageFile = path.join(directory, "..", "..", "package.json");
try {
fs.accessSync(parentPackageFile);
@ -74,7 +74,7 @@ module.exports = function(options) {
}
if (rootFound === false) {
currentPath = path.join(currentPath, `..${path.sep}..`);
currentPath = path.join(currentPath, "..", "..");
}
}

Loading…
Cancel
Save