Remove redundant check

refs #4991
This commit is contained in:
Gunnar Beutner 2017-03-16 09:46:31 +01:00
parent 04be7a1f1e
commit 3a5caf15eb

View File

@ -111,12 +111,11 @@ void RedisWriter::UpdateAllConfigObjects(void)
/* fetch all objects and dump them */ /* fetch all objects and dump them */
ConfigType *ctype = dynamic_cast<ConfigType *>(type.get()); ConfigType *ctype = dynamic_cast<ConfigType *>(type.get());
VERIFY(ctype);
if (ctype) { for (const ConfigObject::Ptr& object : ctype->GetObjects()) {
for (const ConfigObject::Ptr& object : ctype->GetObjects()) { SendConfigUpdate(object, typeName);
SendConfigUpdate(object, typeName); SendStatusUpdate(object, typeName);
SendStatusUpdate(object, typeName);
}
} }
} }
} }
@ -195,8 +194,7 @@ Dictionary::Ptr RedisWriter::SerializeObjectAttrs(const Object::Ptr& object, int
Dictionary::Ptr resultAttrs = new Dictionary(); Dictionary::Ptr resultAttrs = new Dictionary();
for (int& fid : fids) for (int& fid : fids) {
{
Field field = type->GetFieldInfo(fid); Field field = type->GetFieldInfo(fid);
if ((field.Attributes & fieldType) == 0) if ((field.Attributes & fieldType) == 0)