Skip to content

Commit

Permalink
make staticcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
CubicrootXYZ committed Aug 8, 2021
1 parent dc436c7 commit 837064b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/formater/time.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 837064b

Please sign in to comment.