From 12809656a6680ba31ae689d7f200a94b8531fba1 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Mon, 11 Aug 2025 22:02:37 +0200 Subject: [PATCH] Remove redundant parenthesis --- src/operators/fuzzy_hash.cc | 2 +- src/operators/inspect_file.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators/fuzzy_hash.cc b/src/operators/fuzzy_hash.cc index 57b8c565..46ed5eb9 100644 --- a/src/operators/fuzzy_hash.cc +++ b/src/operators/fuzzy_hash.cc @@ -48,7 +48,7 @@ bool FuzzyHash::init(const std::string ¶m2, std::string *error) { std::string resource = utils::find_resource(file, param2, &err); iss = new std::ifstream(resource, std::ios::in); - if ((iss)->is_open() == false) { + if (iss->is_open() == false) { error->assign("Failed to open file: " + m_param + ". " + err); delete iss; return false; diff --git a/src/operators/inspect_file.cc b/src/operators/inspect_file.cc index 43767ff8..28c9c072 100644 --- a/src/operators/inspect_file.cc +++ b/src/operators/inspect_file.cc @@ -38,7 +38,7 @@ bool InspectFile::init(const std::string ¶m2, std::string *error) { m_file = utils::find_resource(m_param, param2, &err); iss = new std::ifstream(m_file, std::ios::in); - if ((iss)->is_open() == false) { + if (iss->is_open() == false) { error->assign("Failed to open file: " + m_param + ". " + err); delete iss; return false;