mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-05-19 09:40:22 -07:00
Fixes #43.
This commit is contained in:
parent
a3fc4cdded
commit
155676b474
@ -362,10 +362,6 @@ impl Overrides {
|
|||||||
/// Match::None (and interpreting non-matches as ignored) unless is_dir
|
/// Match::None (and interpreting non-matches as ignored) unless is_dir
|
||||||
/// is true.
|
/// is true.
|
||||||
pub fn matched<P: AsRef<Path>>(&self, path: P, is_dir: bool) -> Match {
|
pub fn matched<P: AsRef<Path>>(&self, path: P, is_dir: bool) -> Match {
|
||||||
// File types don't apply to directories.
|
|
||||||
if is_dir {
|
|
||||||
return Match::None;
|
|
||||||
}
|
|
||||||
let path = path.as_ref();
|
let path = path.as_ref();
|
||||||
self.gi.as_ref()
|
self.gi.as_ref()
|
||||||
.map(|gi| {
|
.map(|gi| {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user