diff --git a/proto_package.go b/proto_package.go index 1926461..40bf769 100644 --- a/proto_package.go +++ b/proto_package.go @@ -468,7 +468,7 @@ func (p *ProtoPackage) isAvailable(h *alpm.Handle) bool { // workaround for https://github.com/andrewgregory/pacutils/issues/66 // TODO: remove once fixed rRes := reReplacePacsiftWarning.ReplaceAllString(string(res), "") - if len(strings.TrimSpace(rRes)) == 0 { + if strings.TrimSpace(rRes) == "" { return false }