From b38a985ecbd07c8e9b3dfb6f30a1c228f9f5cbb9 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Sat, 23 Sep 2023 18:38:54 +0200 Subject: [PATCH] style: merge two statements --- lib/time.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/time.js b/lib/time.js index c5bdaed8..5cccc7a0 100644 --- a/lib/time.js +++ b/lib/time.js @@ -152,12 +152,11 @@ function CronTime(luxon) { } if (typeof this.utcOffset !== 'undefined') { - let offsetHours = + const offsetHours = parseInt( this.utcOffset >= 60 || this.utcOffset <= -60 ? this.utcOffset / 60 - : this.utcOffset; - - offsetHours = parseInt(offsetHours); + : this.utcOffset + ); const offsetMins = this.utcOffset >= 60 || this.utcOffset <= -60