Skip to content

Commit

Permalink
go/build: remove superfluous continues
Browse files Browse the repository at this point in the history
This cleanup was proposed in CL 148937. The branch is already ended with
a continue, so remove continues from subbranches and use an else-if.

Change-Id: Iaf6eb57afc84e25862f99a342f5824e315bcdcb7
Reviewed-on: https://go-review.googlesource.com/c/148922
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
ainar-g authored and bradfitz committed Nov 11, 2018
1 parent 3a7a56c commit f58b02a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/go/build/read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,8 @@ func testRead(t *testing.T, tests []readTest, read func(io.Reader) ([]byte, erro
if err != nil {
if tt.err == "" {
t.Errorf("#%d: err=%q, expected success (%q)", i, err, string(buf))
continue
}
if !strings.Contains(err.Error(), tt.err) {
} else if !strings.Contains(err.Error(), tt.err) {
t.Errorf("#%d: err=%q, expected %q", i, err, tt.err)
continue
}
continue
}
Expand Down

0 comments on commit f58b02a

Please sign in to comment.