mirror of https://github.com/grpc/grpc-node.git
Merge pull request #617 from JustinBeckwith/isstring
refactor: drop usage of _.isString
This commit is contained in:
commit
73b05e87af
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue