From b7de442f25e9574677646dc3f1e3ae60388d8dc8 Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Sun, 17 Apr 2016 19:42:22 +0200 Subject: [PATCH] Remove unnecessary `path.sep` usage --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4f88c35..f0d9e1c 100644 --- a/src/index.js +++ b/src/index.js @@ -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, "..", ".."); } }