mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-18 21:55:12 -04:00
removed code redundancies.
This commit is contained in:
@@ -109,10 +109,7 @@ namespace Marr.Data.Mapping
|
||||
{
|
||||
return AltName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,10 +26,7 @@ namespace Marr.Data.Mapping
|
||||
{
|
||||
return AltName;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,10 +216,7 @@ namespace Marr.Data.Mapping
|
||||
fieldName,
|
||||
typeof(TEntity).Name));
|
||||
}
|
||||
else
|
||||
{
|
||||
MappedColumns.Add(columnMap);
|
||||
}
|
||||
MappedColumns.Add(columnMap);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -153,10 +153,7 @@ namespace Marr.Data.Mapping
|
||||
fieldName,
|
||||
typeof(TEntity).Name));
|
||||
}
|
||||
else
|
||||
{
|
||||
Relationships.Add(relationship);
|
||||
}
|
||||
Relationships.Add(relationship);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -67,10 +67,7 @@ namespace Marr.Data.Mapping.Strategies
|
||||
{
|
||||
return (atts[0] as TableAttribute).Name;
|
||||
}
|
||||
else
|
||||
{
|
||||
return entityType.Name;
|
||||
}
|
||||
return entityType.Name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user