summaryrefslogtreecommitdiffstats
path: root/lib/utils/path.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/path.js')
-rw-r--r--lib/utils/path.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/utils/path.js b/lib/utils/path.js
index 5285896..dc97d5d 100644
--- a/lib/utils/path.js
+++ b/lib/utils/path.js
@@ -1,5 +1,5 @@
-var _ = require("lodash");
-var path = require("path");
+var _ = require('lodash');
+var path = require('path');
// Return true if file path is inside a folder
function isInRoot(root, filename) {
@@ -26,8 +26,8 @@ function resolveInRoot(root) {
result = path.resolve(root, input);
if (!isInRoot(root, result)) {
- err = new Error("EACCESS: \"" + result + "\" not in \"" + root + "\"");
- err.code = "EACCESS";
+ err = new Error('EACCESS: "' + result + '" not in "' + root + '"');
+ err.code = 'EACCESS';
throw err;
}