From 49734661dccb75e2f7d1de916cbe8d6609175894 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 29 Feb 2020 16:38:07 +0900 Subject: [PATCH] Refactor --- src/prelude/time.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prelude/time.ts b/src/prelude/time.ts index b1824b42e..0c75d96fe 100644 --- a/src/prelude/time.ts +++ b/src/prelude/time.ts @@ -11,7 +11,7 @@ export function DateUTC(time: number[]): Date { } export function isTimeSame(a: Date, b: Date): boolean { - return (a.getTime() - b.getTime()) === 0; + return a.getTime() === b.getTime(); } export function isTimeBefore(a: Date, b: Date): boolean {