We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a2888 commit ac29a36Copy full SHA for ac29a36
k4FWCore/src/KeepDropSwitch.cpp
@@ -92,10 +92,9 @@ bool KeepDropSwitch::isOn(const std::string& astring) const {
92
bool KeepDropSwitch::getFlag(const std::string& astring) const noexcept {
93
bool flag = true;
94
for (const auto& [cmd, pattern] : m_commandlines) {
95
- bool match = wildcmp(pattern.c_str(), astring.c_str());
96
- if (not match)
97
- continue;
98
- flag = (cmd == Cmd::KEEP);
+ if (wildcmp(pattern.c_str(), astring.c_str())) {
+ flag = (cmd == Cmd::KEEP);
+ }
99
}
100
return flag;
101
0 commit comments