Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pdoerner committed Feb 13, 2025
1 parent b78b369 commit f2eb2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/primitives/timestamp/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ValidateAndCapProtoDuration(d *durationpb.Duration) error {

if d.AsDuration() > maxAllowedDuration {
d.Seconds = maxSeconds
d.Nanos = int32(0) // A year is always a round number of seconds.
d.Nanos = 0 // A year is always a round number of seconds.
}

return nil
Expand Down

0 comments on commit f2eb2e8

Please sign in to comment.