Skip to content

Commit 90f04ed

Browse files
committed
imapclient: drop useless nil check in Options.tlsConfig
1 parent fb4422f commit 90f04ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imapclient/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (options *Options) unilateralDataHandler() *UnilateralDataHandler {
113113
}
114114

115115
func (options *Options) tlsConfig() *tls.Config {
116-
if options != nil && options.TLSConfig != nil {
116+
if options.TLSConfig != nil {
117117
return options.TLSConfig.Clone()
118118
} else {
119119
return new(tls.Config)

0 commit comments

Comments
 (0)