From 086c8c9d0be596e53ef874c1b508071b6d277857 Mon Sep 17 00:00:00 2001 From: Ghasem Shirazi Date: Thu, 22 Sep 2022 08:30:32 -0700 Subject: [PATCH] pkg/internal/zebra: remove duplicate errorcheck --- internal/pkg/zebra/zapi.go | 3 --- 1 file changed, 3 deletions(-) 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 {