mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
removed code redundancies.
This commit is contained in:
@@ -105,11 +105,8 @@ namespace Marr.Data
|
||||
// Return entity specific column map strategy
|
||||
return _columnMapStrategies[entityType];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Return the default column map strategy
|
||||
return _columnMapStrategies[typeof(object)];
|
||||
}
|
||||
// Return the default column map strategy
|
||||
return _columnMapStrategies[typeof(object)];
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -219,21 +216,18 @@ namespace Marr.Data
|
||||
// User registered type converter
|
||||
return TypeConverters[dataType];
|
||||
}
|
||||
else if (TypeConverters.ContainsKey(typeof(Enum)) && dataType.IsEnum)
|
||||
if (TypeConverters.ContainsKey(typeof(Enum)) && dataType.IsEnum)
|
||||
{
|
||||
// A converter is registered to handled enums
|
||||
return TypeConverters[typeof(Enum)];
|
||||
}
|
||||
else if (TypeConverters.ContainsKey(typeof(object)))
|
||||
if (TypeConverters.ContainsKey(typeof(object)))
|
||||
{
|
||||
// User registered default converter
|
||||
return TypeConverters[typeof(object)];
|
||||
}
|
||||
else
|
||||
{
|
||||
// No conversion
|
||||
return null;
|
||||
}
|
||||
// No conversion
|
||||
return null;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user