Skip to content

Commit e7ceb83

Browse files
authored
fix minor unreachable code caused by t.Fatalf
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
1 parent 3e7d0a7 commit e7ceb83

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)