Fix panic in tagged filtering

This commit is contained in:
Félix Saparelli 2021-10-14 00:13:48 +13:00
parent c6336cdf3c
commit f24e95504b
No known key found for this signature in database
GPG key ID: B948C4BAE44FC474

View file

@ -196,9 +196,8 @@ impl TaggedFilterer {
trace!(?resolved, "resolved path to match filter against");
if matches!(filter.op, Op::Glob | Op::NotGlob) {
unreachable!(
"path glob match with match_tag is too late; should be handled above"
);
trace!("path glob match with match_tag is already handled");
return Ok(None);
} else {
filter.matches(resolved.to_string_lossy())
}