Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
unexpected endings
  • Loading branch information
jfarmer08 committed Feb 14, 2024
1 parent f99b378 commit f80ed95
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,14 @@ module.exports = class WyzeAPI {
if (!result.ok || !result.data.access_token) {
throw new Error(
result
)}`
);
)}
}

if (this.apiLogEnabled) {
this.log.debug("Successfully logged into Wyze API");
}
await this._updateTokens(result.data);
}
}

async maybeLogin() {
if (!this.access_token) {
Expand Down

0 comments on commit f80ed95

Please sign in to comment.