From 2b925aefa3abcd058cf587ff61248514fbf8908d Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sun, 10 Jun 2018 02:02:24 +0100 Subject: [PATCH] Lint --- install.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.go b/install.go index 7f1ed71b..47b20d06 100644 --- a/install.go +++ b/install.go @@ -160,7 +160,7 @@ func install(parser *arguments) error { if err != nil { return err } - + if len(toEdit) > 0 { if config.ShowDiffs { err = showPkgBuildDiffs(toEdit, do.Bases) @@ -184,7 +184,6 @@ func install(parser *arguments) error { return err } - //initial srcinfo parse before pkgver() bump err = parseSRCINFOFiles(do.Aur, srcinfosStale, do.Bases) if err != nil { @@ -621,7 +620,7 @@ func pkgBuildsToSkip(pkgs []*rpc.Pkg, targets stringSet) stringSet { func mergePkgBuilds(pkgs []*rpc.Pkg) error { for _, pkg := range pkgs { if shouldUseGit(filepath.Join(config.BuildDir, pkg.PackageBase)) { - err := gitMerge(baseURL + "/" + pkg.PackageBase + ".git", config.BuildDir, pkg.PackageBase) + err := gitMerge(baseURL+"/"+pkg.PackageBase+".git", config.BuildDir, pkg.PackageBase) if err != nil { return err } @@ -631,7 +630,6 @@ func mergePkgBuilds(pkgs []*rpc.Pkg) error { return nil } - func downloadPkgBuilds(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, toSkip stringSet) error { for k, pkg := range pkgs { if toSkip.get(pkg.PackageBase) { @@ -645,7 +643,7 @@ func downloadPkgBuilds(pkgs []*rpc.Pkg, bases map[string][]*rpc.Pkg, toSkip stri fmt.Printf(str, k+1, len(pkgs), cyan(formatPkgbase(pkg, bases))) if shouldUseGit(filepath.Join(config.BuildDir, pkg.PackageBase)) { - err := gitDownload(baseURL + "/" + pkg.PackageBase + ".git", config.BuildDir, pkg.PackageBase) + err := gitDownload(baseURL+"/"+pkg.PackageBase+".git", config.BuildDir, pkg.PackageBase) if err != nil { return err }