mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
ReSharper code cleanup
This commit is contained in:
@@ -15,6 +15,7 @@ namespace NzbDrone.Core.Repository.Quality
|
||||
[DisplayName("Name")]
|
||||
[DisplayFormat(ConvertEmptyStringToNull = false)]
|
||||
public string Name { get; set; }
|
||||
|
||||
public bool UserProfile { get; set; } //Allows us to tell the difference between default and user profiles
|
||||
|
||||
[SubSonicIgnore]
|
||||
@@ -37,10 +38,10 @@ namespace NzbDrone.Core.Repository.Quality
|
||||
{
|
||||
string result = String.Empty;
|
||||
if (Allowed == null) return result;
|
||||
|
||||
|
||||
foreach (var q in Allowed)
|
||||
{
|
||||
result += (int)q + "|";
|
||||
result += (int) q + "|";
|
||||
}
|
||||
return result.Trim('|');
|
||||
}
|
||||
@@ -50,7 +51,7 @@ namespace NzbDrone.Core.Repository.Quality
|
||||
Allowed = new List<QualityTypes>(qualities.Length);
|
||||
foreach (var quality in qualities)
|
||||
{
|
||||
Allowed.Add((QualityTypes)Convert.ToInt32(quality));
|
||||
Allowed.Add((QualityTypes) Convert.ToInt32(quality));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,4 +59,4 @@ namespace NzbDrone.Core.Repository.Quality
|
||||
[SubSonicToManyRelation]
|
||||
public virtual List<string> Series { get; private set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user