Commit 544d3651 authored by Andrew Bonventre's avatar Andrew Bonventre

cmd/go/internal/test: remove redundant if statement

Just return the result of the function call as they are
both functionally equivalent.

Change-Id: Ia7847c9b018475051bf6f7a7c532b515bd68c024
Reviewed-on: https://go-review.googlesource.com/90375
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 1124fa30
......@@ -1805,11 +1805,7 @@ func writeTestmain(out string, t *testFuncs) error {
}
defer f.Close()
if err := testmainTmpl.Execute(f, t); err != nil {
return err
}
return nil
return testmainTmpl.Execute(f, t)
}
type testFuncs struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment