- cleaned up unused variable

- renamed parameter
This commit is contained in:
2025-07-31 09:48:45 +02:00
parent 4753243c10
commit 34fcaf32fe

View File

@@ -155,7 +155,6 @@ public class LoadingBar extends AbstractProgressBar {
nextArg = args[1];
var section = DaySection.byParam(nextArg);
verifyDaySection(section, nextArg);
LoadingBar lb;
return section == DaySection.MITTAG ? getLoadingBarMittagspause(args, startTime) : getLoadingBarZapfenstreich(args, startTime);
}
@@ -393,11 +392,11 @@ public class LoadingBar extends AbstractProgressBar {
}
private void realInitZapfenstreich(long effectiveLunchDuration, LocalTime endTime) {
private void realInitZapfenstreich(long effectiveLunchDuration, LocalTime effectiveEndTime) {
if (effectiveLunchDuration > 0) {
var totalWorkTime = LocalTime.MIDNIGHT.plusMinutes(getStartTime().until(endTime, ChronoUnit.MINUTES) - effectiveLunchDuration);
var totalWorkTime = LocalTime.MIDNIGHT.plusMinutes(getStartTime().until(effectiveEndTime, ChronoUnit.MINUTES) - effectiveLunchDuration);
print("Arbeitszeit: " + FormatTools.TIME_FORMATTER.format(totalWorkTime) + "; ");
}
setEndTime(endTime);
setEndTime(effectiveEndTime);
}
}