From 837064baf488f119c310e3fe54616352aa70c848 Mon Sep 17 00:00:00 2001 From: Cubicroot Date: Sun, 8 Aug 2021 18:16:12 +0200 Subject: [PATCH] make staticcheck happy --- internal/formater/time.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/formater/time.go b/internal/formater/time.go index 064fa35b..d179a82c 100644 --- a/internal/formater/time.go +++ b/internal/formater/time.go @@ -49,7 +49,7 @@ func ParseTime(msg string, channel *database.Channel) (time.Time, error) { } // Past? then set to in an hour - if parsedTime.Sub(time.Now()) <= 5*time.Minute { + if time.Until(parsedTime) <= 5*time.Minute { parsedTime = time.Now().Add(time.Hour) }