Skip to content

Commit

Permalink
style: merge two statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Sep 23, 2023
1 parent 619a172 commit b38a985
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/time.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b38a985

Please sign in to comment.