]> granicus.if.org Git - icinga2/commitdiff
Remove redundant check
authorGunnar Beutner <gunnar.beutner@icinga.com>
Tue, 6 Dec 2016 07:57:27 +0000 (08:57 +0100)
committerGunnar Beutner <gunnar.beutner@icinga.com>
Tue, 6 Dec 2016 07:57:27 +0000 (08:57 +0100)
refs #13409

lib/remote/createobjecthandler.cpp

index b4cbbd924bb7c89cd38926c2f76db9e9f00678c1..428fbef10735b0bc1bbdec7dadc96e75e29e80fe 100644 (file)
@@ -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);
                }
        }