Explorar o código

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 %!s(int64=5) %!d(string=hai) anos
pai
achega
873b2db591
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)