Skip to content

Commit 82f929e

Browse files
committed
nolint:durationcheck
1 parent 2c3ad71 commit 82f929e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/value/value.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,20 +928,20 @@ func (v intervalValue) Yql() string {
928928
}
929929
buffer.WriteByte('P')
930930
if days := d / time.Hour / 24; days > 0 {
931-
d -= days * time.Hour * 24
931+
d -= days * time.Hour * 24 //nolint:durationcheck
932932
buffer.WriteString(strconv.FormatInt(int64(days), 10))
933933
buffer.WriteByte('D')
934934
}
935935
if d > 0 {
936936
buffer.WriteByte('T')
937937
}
938938
if hours := d / time.Hour; hours > 0 {
939-
d -= hours * time.Hour
939+
d -= hours * time.Hour //nolint:durationcheck
940940
buffer.WriteString(strconv.FormatInt(int64(hours), 10))
941941
buffer.WriteByte('H')
942942
}
943943
if minutes := d / time.Minute; minutes > 0 {
944-
d -= minutes * time.Minute
944+
d -= minutes * time.Minute //nolint:durationcheck
945945
buffer.WriteString(strconv.FormatInt(int64(minutes), 10))
946946
buffer.WriteByte('M')
947947
}

0 commit comments

Comments
 (0)