diff --git a/internal/pkg/zebra/zapi.go b/internal/pkg/zebra/zapi.go index 7bda96986..ddc5f6ed9 100644 --- a/internal/pkg/zebra/zapi.go +++ b/internal/pkg/zebra/zapi.go @@ -1359,9 +1359,6 @@ func NewClient(logger log.Logger, network, address string, typ RouteType, versio if err != nil { return nil, err } - if err != nil { - return nil, err - } outgoing := make(chan *Message) incoming := make(chan *Message, 64) if version < MinZapiVer {