From 174cd3bc6925601cbe594af0b3b446b8f73e975f Mon Sep 17 00:00:00 2001 From: TheDancingCode Date: Sat, 3 Feb 2018 16:47:21 +0000 Subject: [PATCH] Fix ESLint error (#133) --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index a0aa854..403e3f2 100644 --- a/index.js +++ b/index.js @@ -102,9 +102,9 @@ module.exports = function(options) { var err; if (object[requireName]) { logDebug('error: defineProperty ' + name); - err = maintainScope ? - 'Could not define the property "' + requireName + '", you may have repeated dependencies in your package.json like' + ' "gulp-' + requireName + '" and ' + '"' + requireName + '"' : - 'Could not define the property "' + requireName + '", you may have repeated a dependency in another scope like' + ' "gulp-' + requireName + '" and ' + '"@foo/gulp-' + requireName + '"'; + err = maintainScope + ? 'Could not define the property "' + requireName + '", you may have repeated dependencies in your package.json like' + ' "gulp-' + requireName + '" and ' + '"' + requireName + '"' + : 'Could not define the property "' + requireName + '", you may have repeated a dependency in another scope like' + ' "gulp-' + requireName + '" and ' + '"@foo/gulp-' + requireName + '"'; throw new Error(err); }