Skip to content

Commit

Permalink
fix double assignment (I'm stupid)
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Feb 2, 2024
1 parent 3f85130 commit e0e415e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/helpers/timedEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,7 @@ export class TimedEmbed {
public setTimeout(number: number): this;
public setTimeout(date: Date): this;
public setTimeout(value: any) {
this.timeout =
value instanceof Date
? (this.timeout = parseInt((value.getTime() / 1000).toFixed(0)))
: value;
this.timeout = value instanceof Date ? parseInt((value.getTime() / 1000).toFixed(0)) : value;
return this;
}

Expand Down

0 comments on commit e0e415e

Please sign in to comment.