mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-06-30 22:23:44 +02:00
Fixes #43.
This commit is contained in:
@ -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| {
|
||||||
|
Reference in New Issue
Block a user