Skip to content

Commit

Permalink
[-] fix SA5011: possible nil pointer dereference (staticcheck)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub committed Jan 9, 2025
1 parent 40935ce commit af51eae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ func TestPoolConfig(t *testing.T) {
}
c := mock.Config()
if c == nil {
t.Error("expected config object, but got nil")
t.Fatal("expected config object, but got nil")
}
if c.ConnConfig == nil {
t.Error("expected conn config object, but got nil")
t.Fatal("expected conn config object, but got nil")
}
}

Expand All @@ -84,6 +84,6 @@ func TestConnConfig(t *testing.T) {
}
c := mock.Config()
if c == nil {
t.Error("expected config object, but got nil")
t.Fatal("expected config object, but got nil")
}
}

0 comments on commit af51eae

Please sign in to comment.