Skip to content

Commit

Permalink
chore: update standard and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
BridgeAR committed Apr 3, 2017
1 parent 47bc2e7 commit 9bda596
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@ function JavascriptRedisParser (options) {
throw new TypeError('Please provide all return functions while initiating the parser')
}
for (var key in options) {
// eslint-disable-next-line valid-typeof
if (optionTypes.hasOwnProperty(key) && typeof options[key] !== optionTypes[key]) {
throw new TypeError('The options argument contains the property "' + key + '" that is either unkown or of a wrong type')
throw new TypeError('The options argument contains the property "' + key + '" that is either unknown or of a wrong type')
}
}
if (options.name === 'hiredis') {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"codeclimate-test-reporter": "^0.4.0",
"intercept-stdout": "^0.1.2",
"istanbul": "^0.4.0",
"standard": "^8.5.0",
"standard": "^9.0.0",
"mocha": "^3.1.2",
"hiredis": "^0.5.0"
},
Expand Down

0 comments on commit 9bda596

Please sign in to comment.