Skip to content

Commit

Permalink
[INTERNAL] Fix eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomByte committed Nov 16, 2018
1 parent 58a0003 commit d24eeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/translators/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit d24eeb2

Please sign in to comment.