code cleanup (#743)

* update tools

* run code cleanup

* update dependencies
This commit is contained in:
Jason Dove
2022-04-19 17:47:18 -05:00
committed by GitHub
parent e250e93a8e
commit c02b83d0d6
1223 changed files with 5487 additions and 5547 deletions
@@ -31,7 +31,7 @@ public abstract class ProgramScheduleItemCommandBase
List<FillerPreset> allFiller = await dbContext.FillerPresets
.Filter(fp => allFillerIds.Contains(fp.Id))
.ToListAsync();
if (allFiller.Count(f => f.PadToNearestMinute.HasValue) > 1)
{
return BaseError.New("Schedule may only contain one filler preset that is configured to pad");
@@ -70,7 +70,8 @@ public abstract class ProgramScheduleItemCommandBase
case PlayoutMode.Multiple:
if (item.MultipleCount.GetValueOrDefault() < 0)
{
return BaseError.New("[MultipleCount] must be greater than or equal to 0 for playout mode 'multiple'");
return BaseError.New(
"[MultipleCount] must be greater than or equal to 0 for playout mode 'multiple'");
}
break;
@@ -252,4 +253,4 @@ public abstract class ProgramScheduleItemCommandBase
startTime.HasValue && startTime.Value >= TimeSpan.FromDays(1)
? startTime.Value.Subtract(TimeSpan.FromDays(1))
: startTime;
}
}