Removed unesserary variable

master
Alexander B 6 years ago
parent fb6cf14402
commit 06aa7969bf

@ -57,9 +57,6 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System
// Iterate through data // Iterate through data
foreach (KeyValuePair<string, object> data_keySet in data) foreach (KeyValuePair<string, object> data_keySet in data)
{ {
// If the data was set
bool dataIsSet = false;
// Interate through class-fields // Interate through class-fields
foreach (KeyValuePair<string, FieldInfo> field_keySet in dbFields) foreach (KeyValuePair<string, FieldInfo> field_keySet in dbFields)
{ {
@ -67,7 +64,6 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System
if (field_keySet.Key.ToLower() == data_keySet.Key.ToLower()) if (field_keySet.Key.ToLower() == data_keySet.Key.ToLower())
{ {
field_keySet.Value.SetValue(classObject, data_keySet.Value); field_keySet.Value.SetValue(classObject, data_keySet.Value);
dataIsSet = true;
break; break;
} }
} }

Loading…
Cancel
Save