Skip to content

Commit

Permalink
Casing nit
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Mar 18, 2019
1 parent 89083cf commit 8e7cb77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/error-codes/extract-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ module.exports = function(opts) {
// error messages can be concatenated (`+`) at runtime, so here's a
// trivial partial evaluator that interprets the literal value
const errorMsgLiteral = evalToString(node.arguments[1]);
addtoErrorMap(errorMsgLiteral);
addToErrorMap(errorMsgLiteral);
}
},
},
});
}

function addtoErrorMap(errorMsgLiteral) {
function addToErrorMap(errorMsgLiteral) {
if (existingErrorMap.hasOwnProperty(errorMsgLiteral)) {
return;
}
Expand Down

0 comments on commit 8e7cb77

Please sign in to comment.