summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Luz <dev@mernen.com>2017-01-08 19:04:38 -0200
committerAndrew Gallant <jamslam@gmail.com>2017-01-08 17:02:57 -0500
commitc4633ff187ca29ed1fb179b9ed0768461c121866 (patch)
treec90cf5df366d70a655699923585061b8c047349c /src
parent97e6873b38ad58de62f66fc3796b6b82876f1d79 (diff)
Remove trivial condition.
Diffstat (limited to 'src')
-rw-r--r--src/search_stream.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search_stream.rs b/src/search_stream.rs
index a7366295..16302922 100644
--- a/src/search_stream.rs
+++ b/src/search_stream.rs
@@ -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)