Skip to content

Commit 4878856

Browse files
authored
Merge pull request graph-gophers#530 from Abirdcfly/patch-1
fix minor unreachable code caused by t.Fatalf
2 parents 3e7d0a7 + e7ceb83 commit 4878856

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gqltesting/testing.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ func RunTest(t *testing.T, test *Test) {
5151

5252
if test.ExpectedResult == "" {
5353
if result.Data != nil {
54-
t.Fatalf("got: %s", result.Data)
55-
t.Fatalf("want: null")
54+
t.Fatalf("got: %s, want: null", result.Data)
5655
}
5756
return
5857
}

0 commit comments

Comments
 (0)