From: Gunnar Beutner Date: Tue, 6 Dec 2016 07:57:27 +0000 (+0100) Subject: Remove redundant check X-Git-Tag: v2.6.0~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe12a10c89963be765ebc3e02a0a058a4432dcbd;p=icinga2 Remove redundant check refs #13409 --- diff --git a/lib/remote/createobjecthandler.cpp b/lib/remote/createobjecthandler.cpp index b4cbbd924..428fbef10 100644 --- a/lib/remote/createobjecthandler.cpp +++ b/lib/remote/createobjecthandler.cpp @@ -65,7 +65,7 @@ bool CreateObjectHandler::HandleRequest(const ApiUser::Ptr& user, HttpRequest& r if (!attrs) { attrs = new Dictionary(); attrs->Set("zone", localZoneName); - } else if (attrs && !attrs->Contains("zone")) { + } else if (!attrs->Contains("zone")) { attrs->Set("zone", localZoneName); } }