From fe12a10c89963be765ebc3e02a0a058a4432dcbd Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 6 Dec 2016 08:57:27 +0100 Subject: [PATCH] Remove redundant check refs #13409 --- lib/remote/createobjecthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }