Skip to content

Commit 1280965

Browse files
committed
Remove redundant parenthesis
1 parent ea51a66 commit 1280965

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/operators/fuzzy_hash.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool FuzzyHash::init(const std::string &param2, std::string *error) {
4848
std::string resource = utils::find_resource(file, param2, &err);
4949
iss = new std::ifstream(resource, std::ios::in);
5050

51-
if ((iss)->is_open() == false) {
51+
if (iss->is_open() == false) {
5252
error->assign("Failed to open file: " + m_param + ". " + err);
5353
delete iss;
5454
return false;

src/operators/inspect_file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ bool InspectFile::init(const std::string &param2, std::string *error) {
3838
m_file = utils::find_resource(m_param, param2, &err);
3939
iss = new std::ifstream(m_file, std::ios::in);
4040

41-
if ((iss)->is_open() == false) {
41+
if (iss->is_open() == false) {
4242
error->assign("Failed to open file: " + m_param + ". " + err);
4343
delete iss;
4444
return false;

0 commit comments

Comments
 (0)