Skip to content

Commit 781274e

Browse files
committed
Auto-generated commit
1 parent 45f9567 commit 781274e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ function validate( opts, options ) {
5656
if ( hasOwnProp( options, 'dtype' ) ) {
5757
opts.dtype = options.dtype;
5858
if ( !isString( opts.dtype ) ) {
59-
return new TypeError( format( 'invalid option. `%s` option must be a string primitive. Option: `%s`.', 'dtype', opts.dtype ) );
59+
return new TypeError( format( 'invalid option. `%s` option must be a string. Option: `%s`.', 'dtype', opts.dtype ) );
6060
}
6161
}
6262
if ( hasOwnProp( options, 'endpoint' ) ) {
6363
opts.endpoint = options.endpoint;
6464
if ( !isBoolean( opts.endpoint ) ) {
65-
return new TypeError( format( 'invalid option. `%s` option must be a boolean primitive. Option: `%s`.', 'endpoint', opts.endpoint ) );
65+
return new TypeError( format( 'invalid option. `%s` option must be a boolean. Option: `%s`.', 'endpoint', opts.endpoint ) );
6666
}
6767
}
6868
return null;

0 commit comments

Comments
 (0)