From c422d5c9acc55a751840a2f2fafeb7c608e829bc Mon Sep 17 00:00:00 2001 From: Ragnar Lothbrok <30740511+RagnarLothbrok-Odin@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:09:10 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(index.ts):=20remove=20unnece?= =?UTF-8?q?ssary=20curly=20braces=20to=20improve=20code=20readability=20an?= =?UTF-8?q?d=20reduce=20redundancy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 378f047..bf429ef 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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') { @@ -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') {