Skip to content

Commit

Permalink
fix: check if restClientConfig exists
Browse files Browse the repository at this point in the history
  • Loading branch information
AliakseiLiasnitski committed Jan 23, 2024
1 parent a374e29 commit 01e6e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RestClient {
this.headers = options.headers;
this.restClientConfig = options.restClientConfig;

addLogger(options.restClientConfig.debug);
addLogger(this.restClientConfig ? this.restClientConfig.debug : false);
}

buildPath(path) {
Expand Down

0 comments on commit 01e6e72

Please sign in to comment.