1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-02-10 18:31:40 +02:00

fix: Fix a logic judgment bug. (#2540)

Signed-off-by: Arvin <1458070668@qq.com>
This commit is contained in:
Arvin 2022-08-03 00:54:51 +08:00 committed by GitHub
parent 63a9b94820
commit 51250bf248
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ func WithTimeout(d time.Duration) DialOption {
// NetListener Set net.Listener for httpTransport
func NetListener(customListener net.Listener) ListenOption {
return func(o *ListenOptions) {
if customListener != nil {
if customListener == nil {
return
}
if o.Context == nil {