Skip to content

Commit ab9e380

Browse files
authored
fix staticcheck error (#1761)
remove unnecessary nil check.
1 parent f298c66 commit ab9e380

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ func TestTLS(t *testing.T) {
14991499
dbt.Fatal(err.Error())
15001500
}
15011501

1502-
if (*value == nil) || (len(*value) == 0) {
1502+
if len(*value) == 0 {
15031503
dbt.Fatalf("no Cipher")
15041504
} else {
15051505
dbt.Logf("Cipher: %s", *value)

0 commit comments

Comments
 (0)