From: Gunnar Beutner Date: Wed, 18 Sep 2013 08:30:20 +0000 (+0200) Subject: Remove unnecessary check. X-Git-Tag: v0.0.3~476 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afbfdb25790c4d99d6242df9439a29e1f52bd3c9;p=icinga2 Remove unnecessary check. --- diff --git a/lib/icinga/service-downtime.cpp b/lib/icinga/service-downtime.cpp index 471a7afc2..a26492a45 100644 --- a/lib/icinga/service-downtime.cpp +++ b/lib/icinga/service-downtime.cpp @@ -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); } }