From d24eeb2f1c3a6582ce8514e49e9c720a05f8a0f5 Mon Sep 17 00:00:00 2001 From: Merlin Beutlberger Date: Fri, 16 Nov 2018 15:34:50 +0100 Subject: [PATCH] [INTERNAL] Fix eslint error --- lib/translators/npm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/translators/npm.js b/lib/translators/npm.js index 5abccf7ec..59e2ee56a 100644 --- a/lib/translators/npm.js +++ b/lib/translators/npm.js @@ -38,7 +38,7 @@ class NpmTranslator { // https://github.com/npm/normalize-package-data#what-normalization-currently-entails // Note: optionalDependencies are treated the same as devDependencies in the npm translator if (pkg.optionalDependencies) { - for (let depName in pkg.optionalDependencies) { + for (const depName in pkg.optionalDependencies) { if (pkg.optionalDependencies.hasOwnProperty(depName)) { // Remove entry from "hard" dependencies map if (dependencies[depName]) {