Skip to content

Commit

Permalink
Avoid using optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Dec 24, 2021
1 parent 0104f12 commit 581b383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.ts
Expand Up @@ -18,7 +18,7 @@ export default function (
auth: `token ${token}`,
log: {
info(msg: string) {
if (options?.logRequests === false) return
if (options && options.logRequests === false) return
return console.info(msg)
},
debug(msg: string) {
Expand Down

0 comments on commit 581b383

Please sign in to comment.