Skip to content

Commit f58b02a

Browse files
ainar-gbradfitz
authored andcommitted
go/build: remove superfluous continues
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 <[email protected]>
1 parent 3a7a56c commit f58b02a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/go/build/read_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,8 @@ func testRead(t *testing.T, tests []readTest, read func(io.Reader) ([]byte, erro
110110
if err != nil {
111111
if tt.err == "" {
112112
t.Errorf("#%d: err=%q, expected success (%q)", i, err, string(buf))
113-
continue
114-
}
115-
if !strings.Contains(err.Error(), tt.err) {
113+
} else if !strings.Contains(err.Error(), tt.err) {
116114
t.Errorf("#%d: err=%q, expected %q", i, err, tt.err)
117-
continue
118115
}
119116
continue
120117
}

0 commit comments

Comments
 (0)