Przeglądaj źródła

install.go: fix linter failure

(personal note: I don't believe this helps readability in this case,
"fixing" this to allow merge checks to pass)
Ferdinand Bachmann 5 lat temu
rodzic
commit
873b2db591
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      install.go

+ 2 - 2
install.go

@@ -1114,9 +1114,9 @@ func buildInstallPkgbuilds(dp *depPool, do *depOrder, srcinfos map[string]*gosrc
 			if !ok {
 				if !optional {
 					return fmt.Errorf("Could not find PKGDEST for: %s", name)
-				} else {
-					return nil
 				}
+
+				return nil
 			}
 
 			arguments.addTarget(pkgdest)