From a9fc4c40dc176ba26a3cb384b604d544609f2cd5 Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Mon, 11 Jun 2018 09:54:18 +0200 Subject: [PATCH] [clang-tidy] extract: Remove useless else clause --- src/cli/extract.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cli/extract.cpp b/src/cli/extract.cpp index 9435e86..a0959bb 100644 --- a/src/cli/extract.cpp +++ b/src/cli/extract.cpp @@ -917,9 +917,8 @@ void process_file(const fs::path & file, const extract_options & o) { if(checksum.finalize() != info.header.password) { if(o.check_password) { throw std::runtime_error("Incorrect password provided"); - } else { - log_error << "Incorrect password provided"; } + log_error << "Incorrect password provided"; password.clear(); } }