Skip to content

Commit c422d5c

Browse files
🐛 fix(index.ts): remove unnecessary curly braces to improve code readability and reduce redundancy
1 parent 00f457a commit c422d5c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,7 @@ class TraktInstance {
242242
}
243243

244244
// If the progressBar instance exists, update its progress with the elapsed duration
245-
if (progressBar) {
246-
progressBar.update(elapsedDuration);
247-
}
245+
if (progressBar) progressBar.update(elapsedDuration);
248246

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

286284
// If the progressBar instance exists, update its progress with the elapsed duration
287-
if (progressBar) {
288-
progressBar.update(elapsedDuration);
289-
}
285+
if (progressBar) progressBar.update(elapsedDuration);
290286

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

0 commit comments

Comments
 (0)