From d2a56656b6cc1217f067d9c3a4d4d87a41c4d0e1 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Tue, 1 Feb 2022 18:52:55 +0100 Subject: [PATCH] refactor: remove dangling else --- distribusi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribusi.go b/distribusi.go index ea06455..d01bca4 100644 --- a/distribusi.go +++ b/distribusi.go @@ -247,9 +247,9 @@ func distribusify(c *cli.Context, root string, ignore []string) error { if err != nil { if strings.Contains(err.Error(), "permission denied") { return filepath.SkipDir - } else { - return err } + + return err } for _, content := range contents {