File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const INTERNATIONAL_POSTAL_CODE_API_URL = "https://international-postal-code.api
4040 */
4141class ClientBuilder {
4242 constructor ( signer ) {
43- if ( noCredentialsProvided ( ) ) throw new BadCredentialsError ( ) ;
43+ if ( ! credentialsProvided ( ) ) throw new BadCredentialsError ( ) ;
4444
4545 this . signer = signer ;
4646 this . httpSender = undefined ;
@@ -53,8 +53,8 @@ class ClientBuilder {
5353 this . licenses = [ ] ;
5454 this . customQueries = new Map ( ) ;
5555
56- function noCredentialsProvided ( ) {
57- return ( ! signer ) instanceof StaticCredentials || ( ! signer ) instanceof SharedCredentials ;
56+ function credentialsProvided ( ) {
57+ return signer instanceof StaticCredentials || signer instanceof SharedCredentials ;
5858 }
5959 }
6060
You can’t perform that action at this time.
0 commit comments