[icinga-checkins] icinga.org: icinga2/master: Remove redundant check

git at icinga.org git at icinga.org
Tue Dec 6 08:57:49 CET 2016


Module: icinga2
Branch: master
Commit: fe12a10c89963be765ebc3e02a0a058a4432dcbd
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=fe12a10c89963be765ebc3e02a0a058a4432dcbd

Author: Gunnar Beutner <gunnar.beutner at icinga.com>
Date:   Tue Dec  6 08:57:27 2016 +0100

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 b4cbbd9..428fbef 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);
 		}
 	}



More information about the icinga-checkins mailing list