Skip to content

Commit

Permalink
fix minor unreachable code caused by t.Fatalf
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <[email protected]>
  • Loading branch information
Abirdcfly authored and KNiepok committed Feb 28, 2023
1 parent 7fc1bc4 commit ccf16fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gqltesting/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ func RunTest(t *testing.T, test *Test) {

if test.ExpectedResult == "" {
if result.Data != nil {
t.Fatalf("got: %s", result.Data)
t.Fatalf("want: null")
t.Fatalf("got: %s, want: null", result.Data)
}
return
}
Expand Down

0 comments on commit ccf16fe

Please sign in to comment.