summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2017-03-09 15:28:43 -0600
committerPatrick Williams <patrick@stwcx.xyz>2017-03-09 15:29:20 -0600
commit8ed114b6eec804d946981b1e7cd8da324de5d59f (patch)
tree91736ac892609b3b08a0e098cfa4683e9a7d1aca
parent9b86483fc4790f728e57ea6385d3b7f28d1f4157 (diff)
downloadphosphor-inventory-manager-8ed114b6eec804d946981b1e7cd8da324de5d59f.tar.gz
phosphor-inventory-manager-8ed114b6eec804d946981b1e7cd8da324de5d59f.zip
functor: remove unnecessary iterator comparison
Change-Id: If21765193d26a6908c4a85cbbc23da7d54acb222 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r--functor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/functor.cpp b/functor.cpp
index 253f0e9..e9d723b 100644
--- a/functor.cpp
+++ b/functor.cpp
@@ -63,7 +63,7 @@ bool PropertyConditionBase::operator()(
std::map<std::string, std::vector<std::string>> mapperResponse;
mapperResponseMsg.read(mapperResponse);
- if (mapperResponse.begin() == mapperResponse.end())
+ if (mapperResponse.empty())
{
return false;
}
OpenPOWER on IntegriCloud