Skip to content

Commit 513001b

Browse files
authored
fix: remove unnecessary nil check for tlsConfig in NewServerPool
1 parent 4660fef commit 513001b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

npws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func NewServerPool(maxCap int, clientIP string, tlsConfig *tls.Config, listener
154154
maxCap = defaultMaxCap
155155
}
156156

157-
if listener == nil || tlsConfig == nil {
157+
if listener == nil {
158158
return nil
159159
}
160160

0 commit comments

Comments
 (0)