diff options
Diffstat (limited to 'lib/utils/read-json.js')
-rw-r--r-- | lib/utils/read-json.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/utils/read-json.js b/lib/utils/read-json.js index 20461e4cf..9d76a16b8 100644 --- a/lib/utils/read-json.js +++ b/lib/utils/read-json.js @@ -262,11 +262,12 @@ function typoWarn (json) { } if (typeof json.bugs === "object") { + // just go ahead and correct these. Object.keys(bugsTypos).forEach(function (d) { if (json.bugs.hasOwnProperty(d)) { - log.warn( "package.json: bugs['" + d + "'] should probably be " - + "bugs['" + bugsTypos[d] + "']", json._id) - } + json.bugs[ bugsTypos[d] ] = json.bugs[d] + delete json.bugs[d] + } }) } |