GetContentsMatches of pattern matches never returns nil, but
sometimes it returns an empty slice. So the condition was changed,
while maintaining BC (nil slice's length is still 0)
matchedAny should not be set to true for every matched file.
Instead, it should be set only if there is an actual problem reported
in this file.
This commit fixes 2 related issues:
GetContentsMatches
of pattern matches never returnsnil
, but sometimes it returns an empty slice. So the condition was changed, while maintaining BC (nil slice's length is still 0)matchedAny
should not be set to true for every matched file. Instead, it should be set only if there is an actual problem reported in this file.