We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a3c521 commit cd61856Copy full SHA for cd61856
.golangci.yaml
@@ -250,7 +250,6 @@ linters:
250
checks:
251
- all
252
- -QF1008 # Omit embedded fields from selector expression
253
- - -QF1009 # Use time.Time.Equal instead of == operator
254
- -QF1012 # Use fmt.Fprintf(x, ...) instead of x.Write(fmt.Sprintf(...))
255
256
testifylint:
pkg/cmd/util/output/backup_printer.go
@@ -121,7 +121,7 @@ func humanReadableTimeFromNow(when time.Time) string {
121
122
now := time.Now()
123
switch {
124
- case when == now || when.After(now):
+ case when.Equal(now) || when.After(now):
125
return duration.ShortHumanDuration(when.Sub(now))
126
default:
127
return fmt.Sprintf("%s ago", duration.ShortHumanDuration(now.Sub(when)))
0 commit comments