chore: Put local function after 'return' or 'continue'

This commit is contained in:
uye
2023-08-07 00:58:42 +08:00
committed by GitHub
parent 489d987d45
commit d85eba38d8

View File

@@ -2335,8 +2335,6 @@ namespace MaaWpfGui.ViewModels.UI
return;
}
static bool TimeLess(int lHour, int lMin, int rHour, int rMin) => (lHour != rHour) ? (lHour < rHour) : (lMin <= rMin);
var now = DateTime.Now;
foreach (var plan in CustomInfrastPlanInfoList.Where(
plan => plan.PeriodList.Any(
@@ -2346,6 +2344,8 @@ namespace MaaWpfGui.ViewModels.UI
CustomInfrastPlanIndex = plan.Index;
return;
}
static bool TimeLess(int lHour, int lMin, int rHour, int rMin) => (lHour != rHour) ? (lHour < rHour) : (lMin <= rMin);
}
public void IncreaseCustomInfrastPlanIndex()