mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Remove redundant parenthesis
This commit is contained in:
parent
ea51a663f1
commit
12809656a6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user