refactor: remove dangling else
This commit is contained in:
parent
f0843f220a
commit
d2a56656b6
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user