fix:#22 changed linting errors

This commit is contained in:
Elmar Kresse
2024-02-04 19:23:18 +01:00
parent 4d1748a3fb
commit 6d950e1c8d
7 changed files with 36 additions and 33 deletions

View File

@@ -167,13 +167,9 @@ func extractStartAndEndTime(cycle string) (int, int, int, int) {
}
func getWeekEvents(start time.Time, end time.Time, cycle string) ([]time.Time, []time.Time) {
var weekEvents []model.SportDayStartEnd
// split by regexp to get the cycle parts
var cycleParts []string
cycleParts = splitByCommaWithTime(cycle)
var cycleParts = splitByCommaWithTime(cycle)
for _, cyclePart := range cycleParts {
//cut string at the first integer/number