From cd145766dbc4ab07f6ce5073ba2986c3e72436bc Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Tue, 31 May 2022 08:18:13 -0500 Subject: Spam formatting --- src/models/EventInfo.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/models/EventInfo.ts') diff --git a/src/models/EventInfo.ts b/src/models/EventInfo.ts index b0ac25b..a6819db 100644 --- a/src/models/EventInfo.ts +++ b/src/models/EventInfo.ts @@ -22,7 +22,7 @@ export default class EventInfo { this.end = end; } - static fromJSON({days, start, end}: EventInfoSerializeInfo) { + static fromJSON({ days, start, end }: EventInfoSerializeInfo) { return new EventInfo(days, start, end); } @@ -49,9 +49,9 @@ export default class EventInfo { } get info() { - if(this.days === "") { + if (this.days === "") { return `WEB`; - }else if(this.start === -1 || this.end === -1) { + } else if (this.start === -1 || this.end === -1) { return `${this.days}`; } else { return `${this.days} ${EventInfo.timeToStr(this.start)}-${EventInfo.timeToStr(this.end)}`; -- cgit v1.2.3