chore: code cleanup on solution

pull/47/head
Robert Dailey 3 years ago
parent 6eea15e4c4
commit 53b11e04c9

@ -32,7 +32,7 @@ namespace TrashLib.Tests.Radarr.CustomFormat
private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId) private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId)
{ {
return new(cfName, trashId, new JObject()) return new ProcessedCustomFormatData(cfName, trashId, new JObject())
{ {
CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId} CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId}
}; };

@ -16,7 +16,7 @@ namespace TrashLib.Tests.Radarr.CustomFormat.Processors.PersistenceSteps
{ {
private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId) private ProcessedCustomFormatData QuickMakeCf(string cfName, string trashId, int cfId)
{ {
return new(cfName, trashId, new JObject()) return new ProcessedCustomFormatData(cfName, trashId, new JObject())
{ {
CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId} CacheEntry = new TrashIdMapping(trashId, cfName) {CustomFormatId = cfId}
}; };

@ -113,7 +113,7 @@ namespace TrashLib.Sonarr.ReleaseProfile
private static Regex BuildRegex(string regex) private static Regex BuildRegex(string regex)
{ {
return new(regex, RegexOptions.Compiled | RegexOptions.IgnoreCase); return new Regex(regex, RegexOptions.Compiled | RegexOptions.IgnoreCase);
} }
private Url BuildUrl(ReleaseProfileType profileName) private Url BuildUrl(ReleaseProfileType profileName)

Loading…
Cancel
Save