File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ function validate( opts, options ) {
56
56
if ( hasOwnProp ( options , 'dtype' ) ) {
57
57
opts . dtype = options . dtype ;
58
58
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 ) ) ;
60
60
}
61
61
}
62
62
if ( hasOwnProp ( options , 'endpoint' ) ) {
63
63
opts . endpoint = options . endpoint ;
64
64
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 ) ) ;
66
66
}
67
67
}
68
68
return null ;
You can’t perform that action at this time.
0 commit comments