From c4633ff187ca29ed1fb179b9ed0768461c121866 Mon Sep 17 00:00:00 2001 From: Daniel Luz Date: Sun, 8 Jan 2017 19:04:38 -0200 Subject: [PATCH] Remove trivial condition. --- src/search_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)