Avoid unnecessary conversion

stderr is already a string.
This commit is contained in:
Christian Muehlhaeuser 2019-07-19 11:51:42 +02:00
parent f406866a45
commit 3700c1daa6
No known key found for this signature in database
GPG Key ID: 3CF9FA45CA1EBB7E

View File

@ -279,7 +279,7 @@ func getPkgbuildsfromABS(pkgs []string, path string) (bool, error) {
mux.Lock()
downloaded++
if err != nil {
errs.Add(fmt.Errorf("%s Failed to move %s: %s", bold(red(arrow)), bold(cyan(pkg)), bold(red(string(stderr)))))
errs.Add(fmt.Errorf("%s Failed to move %s: %s", bold(red(arrow)), bold(cyan(pkg)), bold(red(stderr))))
} else {
fmt.Printf(bold(cyan("::"))+" Downloaded PKGBUILD from ABS (%d/%d): %s\n", downloaded, len(names), cyan(pkg))
}