Remove redundant empty check
Checking a vector for empty, then immediately iterating it doesn't
change anything. An empty vector will just return immediately.
Tested: No-OP
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ibf8b3e5c6481bbd17d24b9b5a43320ebac4b79f4
diff --git a/src/Thresholds.cpp b/src/Thresholds.cpp
index b82a511..f50905a 100644
--- a/src/Thresholds.cpp
+++ b/src/Thresholds.cpp
@@ -212,11 +212,6 @@
void updateThresholds(Sensor* sensor)
{
- if (sensor->thresholds.empty())
- {
- return;
- }
-
for (const auto& threshold : sensor->thresholds)
{
if (!findOrder(threshold.level, threshold.direction))