From f2eb2e8e9e7b2d86290833056e7bc04027f102e1 Mon Sep 17 00:00:00 2001 From: PJ Doerner Date: Thu, 13 Feb 2025 13:25:21 -0800 Subject: [PATCH] cleanup --- common/primitives/timestamp/duration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/primitives/timestamp/duration.go b/common/primitives/timestamp/duration.go index c030516a59c..6fc3c0ef282 100644 --- a/common/primitives/timestamp/duration.go +++ b/common/primitives/timestamp/duration.go @@ -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