diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2019-11-10 02:12:41 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2019-12-22 02:03:35 +0100 |
commit | eea414e0b11fc506cf271a1004186a3534917f8b (patch) | |
tree | 10070968132ab17ab0282edb0feec3dca62b60ee | |
parent | 8208a683f1538049b2e15ad9fd81cf511df9ab9e (diff) |
Simplify condition
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | bin/core/imag-header/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/core/imag-header/src/lib.rs b/bin/core/imag-header/src/lib.rs index 7617a16a..cbce8abf 100644 --- a/bin/core/imag-header/src/lib.rs +++ b/bin/core/imag-header/src/lib.rs @@ -197,7 +197,7 @@ fn hasnt<'a, 'e, I>(rt: &Runtime, mtch: &ArgMatches<'a>, iter: I) -> Result<()> iter.and_then_ok(|entry| { trace!("Processing headers: working on {:?}", entry.get_location()); - if let Some(_) = entry.get_header().read(header_path)? { + if entry.get_header().read(header_path)?.is_some() { Ok(()) } else { if !rt.output_is_pipe() { |