1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-05-13 21:26:27 +02:00

Remove trivial condition.

This commit is contained in:
Daniel Luz 2017-01-08 19:04:38 -02:00 committed by Andrew Gallant
parent 97e6873b38
commit c4633ff187

View File

@ -307,7 +307,7 @@ impl<'a, R: io::Read, W: WriteColor> Searcher<'a, R, W> {
} else if self.opts.files_with_matches {
self.printer.path(self.path);
}
} else if self.match_count == 0 && self.opts.files_without_matches {
} else if self.opts.files_without_matches {
self.printer.path(self.path);
}
Ok(self.match_count)