Remove redundant check

refs #13409
This commit is contained in:
Gunnar Beutner 2016-12-06 08:57:27 +01:00
parent 338f5c0be8
commit fe12a10c89
1 changed files with 1 additions and 1 deletions

View 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);
}
}