Merge pull request #617 from JustinBeckwith/isstring

refactor: drop usage of _.isString
This commit is contained in:
Michael Lumish 2018-11-12 17:05:03 -08:00 committed by GitHub
commit 73b05e87af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ function validate(key, value) {
throw new Error('keys that end with \'-bin\' must have Buffer values');
}
} else {
if (!_.isString(value)) {
if (typeof value !== 'string') {
throw new Error(
'keys that don\'t end with \'-bin\' must have String values');
}