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