1
0
forked from ALHP/ALHP.GO

improved empty string match

This commit is contained in:
2023-10-13 20:56:59 +02:00
parent e3f0f4230c
commit 44c4493500

View File

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