From 1eebbf318f08cdc4689c7628abe31609187610d1 Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Mon, 16 Aug 2021 13:22:48 -0700 Subject: [PATCH] Remove unnecessary extra "if" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is something I missed in #32 😅 --- cmd/bashbrew/cmd-deps.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/bashbrew/cmd-deps.go b/cmd/bashbrew/cmd-deps.go index bc0a14a0..4c412ab7 100644 --- a/cmd/bashbrew/cmd-deps.go +++ b/cmd/bashbrew/cmd-deps.go @@ -125,9 +125,7 @@ func cmdFamily(parents bool, c *cli.Context) error { } } } else { - if err != nil { - return cli.NewMultiError(fmt.Errorf(`failed fetching repo %q`, repo), err) - } + return cli.NewMultiError(fmt.Errorf(`failed fetching repo %q`, repo), err) } for _, tag := range tagsToConsider {