From cca5c168dad199770ee70e060503befb6b1bb6b6 Mon Sep 17 00:00:00 2001 From: samanebi <76835941+samanebi@users.noreply.github.com> Date: Mon, 4 Sep 2023 16:06:10 +0330 Subject: [PATCH] fix: remove unnecessary error handling Error handling is repeated twice. this commit omits one of them --- jetstream/jetstream.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/jetstream/jetstream.go b/jetstream/jetstream.go index 2dd5d8b4d..1ff86c336 100644 --- a/jetstream/jetstream.go +++ b/jetstream/jetstream.go @@ -721,9 +721,6 @@ func (s *streamLister) streamInfos(ctx context.Context, streamsReq streamsReques if err != nil { return nil, err } - if err != nil { - return nil, err - } slSubj := apiSubj(s.js.apiPrefix, apiStreamListT) var resp streamListResponse