]> granicus.if.org Git - icinga2/commitdiff
Remove unnecessary check.
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:30:20 +0000 (10:30 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 18 Sep 2013 08:30:20 +0000 (10:30 +0200)
lib/icinga/service-downtime.cpp

index 471a7afc236732316d0e2191d5cd448f6ab2bc2d..a26492a45779dc001cac36cccd1ee718aed9c2df 100644 (file)
@@ -345,10 +345,8 @@ void Service::RemoveExpiredDowntimes(void)
                }
        }
 
-       if (!expiredDowntimes.empty()) {
-               BOOST_FOREACH(const String& id, expiredDowntimes) {
-                       RemoveDowntime(id, false);
-               }
+       BOOST_FOREACH(const String& id, expiredDowntimes) {
+               RemoveDowntime(id, false);
        }
 }