fix(healthcheck/asciifile): file with attribute set as text

This commit is contained in:
张泊明518370910136 2024-10-22 06:58:23 -04:00
parent 7608bd8456
commit 35f0f5c829
GPG Key ID: D47306D7062CDA9D

View File

@ -56,7 +56,7 @@ func getNonAscii(root string) ([]string, error) {
return err return err
} }
ret, matched := matcher.Match(strings.Split(relPath, "/"), nil) ret, matched := matcher.Match(strings.Split(relPath, "/"), nil)
if matched && ret["text"].IsUnset() { if matched && ret["text"].IsUnset() && !ret["text"].IsSet() {
return nil return nil
} }
} }