hwmontempsensor: Remove redundant emptiness check
If the paths vector is empty the for loop iterating over it won't do
anything, and since there's nothing after the loop there's no need to
check and return early.
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I58a23919eec1c51efc2897a71f8cb38c1b8e3d0b
diff --git a/src/HwmonTempMain.cpp b/src/HwmonTempMain.cpp
index f203127..9fd3c10 100644
--- a/src/HwmonTempMain.cpp
+++ b/src/HwmonTempMain.cpp
@@ -271,11 +271,6 @@
findFiles(root, R"(in_humidityrelative\d*_(input|raw))", paths);
findFiles(fs::path("/sys/class/hwmon"), R"(temp\d+_input)", paths);
- if (paths.empty())
- {
- return;
- }
-
// iterate through all found temp and pressure sensors,
// and try to match them with configuration
for (auto& path : paths)