Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
WeeJeWel committed Jan 21, 2025
1 parent e0704fb commit 81f9236
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/OAuth2Driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ class OAuth2Driver extends Homey.Driver {
const { title } = session;

if (sessionWasNew) {
// Destroy the temporary client
client.destroy();

// replace the temporary client by the final one and save it
// Replace the temporary client by the final one
client = this.homey.app.createOAuth2Client({
sessionId: session.id,
configId: OAuth2ConfigId,
Expand Down Expand Up @@ -157,9 +158,10 @@ class OAuth2Driver extends Homey.Driver {
const { title } = session;

if (sessionWasNew) {
// Destroy the temporary client
client.destroy();

// replace the temporary client by the final one and save it
// Replace the temporary client by the final one
client = this.homey.app.createOAuth2Client({
sessionId: session.id,
configId: OAuth2ConfigId,
Expand Down

0 comments on commit 81f9236

Please sign in to comment.