this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

all: re-apply `go fix -any=false ./...` after Go version bump

In particular, this catches a spot where we can use sync.WaitGroup.Go.
It also catches another min/max fix, surprisingly enough.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I2672f5e97dc14ca82961efa133a35be5c9c6439e
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1231000
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>

+3 -8
+2 -4
cue/load/loader_test.go
··· 856 856 func race(t *testing.T, f func() error) { 857 857 var wg sync.WaitGroup 858 858 for range 2 { 859 - wg.Add(1) 860 - go func() { 859 + wg.Go(func() { 861 860 if err := f(); err != nil { 862 861 t.Error(err) 863 862 } 864 - wg.Done() 865 - }() 863 + }) 866 864 } 867 865 wg.Wait() 868 866 }
+1 -4
internal/golangorgx/tools/diff/lcs/old.go
··· 377 377 return 0, false // diagonals cannot overlap 378 378 } 379 379 kmin := max(-df, -db+e.delta) 380 - kmax := db + e.delta 381 - if df < kmax { 382 - kmax = df 383 - } 380 + kmax := min(df, db+e.delta) 384 381 for k := kmin; k <= kmax; k += 2 { 385 382 x := e.vf.get(df, k) 386 383 u := e.vb.get(db, k-e.delta)