Skip to content

Commit

Permalink
🐛 fix(index.ts): remove unnecessary curly braces to improve code read…
Browse files Browse the repository at this point in the history
…ability and reduce redundancy
  • Loading branch information
RagnarLothbrok-Odin committed Dec 18, 2023
1 parent 00f457a commit c422d5c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,7 @@ class TraktInstance {
}

// If the progressBar instance exists, update its progress with the elapsed duration
if (progressBar) {
progressBar.update(elapsedDuration);
}
if (progressBar) progressBar.update(elapsedDuration);

// If the mode is set to standard cli logging
if (this.credentials?.mode === 'standard_log') {
Expand Down Expand Up @@ -284,9 +282,7 @@ class TraktInstance {
}

// If the progressBar instance exists, update its progress with the elapsed duration
if (progressBar) {
progressBar.update(elapsedDuration);
}
if (progressBar) progressBar.update(elapsedDuration);

// If the mode is set to standard cli logging
if (this.credentials?.mode === 'standard_log') {
Expand Down

0 comments on commit c422d5c

Please sign in to comment.