PerformScan: Drop hasTemplateName from recordDiscoveredIdentifiers()
The variable is only used once, just put the statement directly in the
early-return if-condition.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ia842df91e578fa74c4943535482b340ee5148e63
diff --git a/src/PerformScan.cpp b/src/PerformScan.cpp
index c59153e..f1f5f94 100644
--- a/src/PerformScan.cpp
+++ b/src/PerformScan.cpp
@@ -269,9 +269,7 @@
const nlohmann::json& fromLastJson)
{
size_t indexIdx = probeName.find('$');
- bool hasTemplateName = (indexIdx != std::string::npos);
-
- if (!hasTemplateName)
+ if (indexIdx == std::string::npos)
{
return;
}