Skip to content

Commit c65663b

Browse files
committed
remove redundant nil check
1 parent 853f4e3 commit c65663b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

checker/patroni_leader_checker.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ func NewPatroniLeaderChecker(conf *vipconfig.Config) (*PatroniLeaderChecker, err
2626
return nil, err
2727
}
2828

29-
transport := &http.Transport{}
30-
if tlsConfig != nil {
31-
transport.TLSClientConfig = tlsConfig
29+
transport := &http.Transport{
30+
TLSClientConfig: tlsConfig,
3231
}
3332

3433
client := &http.Client{

0 commit comments

Comments
 (0)