PerformScan: Avoid continue in applyExposeActions()
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ibfc9a4313cdedc290294f1138ec6dde6486ea793
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index c64968c..6fd3224 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -372,15 +372,12 @@
for (auto& exposedObject : configList)
{
auto match = findExposeActionRecord(matches, exposedObject);
- if (!match)
+ if (match)
{
- continue;
+ matches.erase(*match);
+ applyBindExposeAction(exposedObject, expose, propertyName);
+ applyDisableExposeAction(exposedObject, propertyName);
}
-
- matches.erase(*match);
-
- applyBindExposeAction(exposedObject, expose, propertyName);
- applyDisableExposeAction(exposedObject, propertyName);
}
}