mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
ReSharper code cleanup
This commit is contained in:
parent
8cade435d1
commit
e896af5cd0
138 changed files with 2368 additions and 2218 deletions
|
@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue