mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 03:13:27 +08:00
all: fix many go vet errors
This commit is contained in:
@@ -84,7 +84,7 @@ func testLinesearcher(t *testing.T, ls Linesearcher, decrease, curvature float64
|
||||
|
||||
op := ls.Init(f0, g0, initStep)
|
||||
if !op.isEvaluation() {
|
||||
t.Errorf("%v: Linesearcher.Init returned non-evaluating operation %v", op)
|
||||
t.Errorf("%v: Linesearcher.Init returned non-evaluating operation %v", prefix, op)
|
||||
continue
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ func testLinesearcher(t *testing.T, ls Linesearcher, decrease, curvature float64
|
||||
f = prob.f(step)
|
||||
g = prob.g(step)
|
||||
default:
|
||||
t.Errorf("%v: Linesearcher returned an invalid operation %v", op)
|
||||
t.Errorf("%v: Linesearcher returned an invalid operation %v", prefix, op)
|
||||
break loop
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user