]> Cypherpunks repositories - gostls13.git/commitdiff
time: remove redundant int conversion in tzruleTime
author1911860538 <alxps1911@gmail.com>
Sun, 6 Apr 2025 09:15:51 +0000 (09:15 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 11 Apr 2025 14:30:57 +0000 (07:30 -0700)
daysBefore returns int.

Change-Id: Ib30c9ea76b46178a4fc35e8198aaab913329ceba
GitHub-Last-Rev: 2999e99dad8bfd075fdc942def1de2593d920c79
GitHub-Pull-Request: golang/go#73182
Reviewed-on: https://go-review.googlesource.com/c/go/+/663275
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
src/time/zoneinfo.go

index aee0e5408b81f2bf3d6de0a55226a0f10a8e5b9d..f0444a5d9daf178816472042a8e42d4f39072cd7 100644 (file)
@@ -593,7 +593,7 @@ func tzruleTime(year int, r rule, off int) int {
                        }
                        d += 7
                }
-               d += int(daysBefore(Month(r.mon)))
+               d += daysBefore(Month(r.mon))
                if isLeap(year) && r.mon > 2 {
                        d++
                }