From afbfdb25790c4d99d6242df9439a29e1f52bd3c9 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 18 Sep 2013 10:30:20 +0200 Subject: [PATCH] Remove unnecessary check. --- lib/icinga/service-downtime.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } }