all: fix many go vet errors

This commit is contained in:
kortschak
2017-06-17 20:50:09 +09:30
committed by Dan Kortschak
parent f990fc84b6
commit 7af70dd796
26 changed files with 47 additions and 51 deletions

View File

@@ -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
}