Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amsanghi committed Nov 10, 2023
1 parent 0b3b9fb commit 60a17ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staker/challenge-cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type Cache struct {
}

func isOlderThanFourteenDays(t time.Time) bool {
return time.Now().Sub(t) > 14*24*time.Hour
return time.Since(t) > 14*24*time.Hour
}

func deleteFilesOlderThanFourteenDays(dir string) error {
Expand Down

0 comments on commit 60a17ff

Please sign in to comment.