diff options
author | isaacs <i@izs.me> | 2012-03-20 00:10:15 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-03-20 00:10:15 +0400 |
commit | 0ffcb813b8d77b7f2b558afa75f237b2143f6320 (patch) | |
tree | 842082dc2c0a94996750f3a8e8ed65077d103361 /lib/utils/read-json.js | |
parent | 5a0c5e978c0560674c2de796aaaa059a511a751f (diff) |
Just correct bugs typos, rather than warn
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] + } }) } |