push
github
chore: apply modernize fixes flagged by latest gopls modernize (#6758) Latest version of golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize (invoked via @latest in makefiles/build.mk) added new analyzers that flag 14 existing locations in master, breaking CI for all open PRs. Apply the mechanical fixes: - atomic.LoadInt32/AddInt32 + var int32 -> sync/atomic.Int32 type - errors.As + var T pattern -> errors.AsType[T] - backward index loop -> slices.Backward - strings.Split(s, sep)[0] -> strings.Cut(s, sep) Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com> (cherry picked from commit af1ca3690) Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com> # Conflicts: # pkg/util/servicecidr_store_test.go
6 of 10 new or added lines in 6 files covered. (60.0%)
14014 of 56539 relevant lines covered (24.79%)
0.29 hits per line