mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-03 18:29:16 +02:00
fix:#22 changed linting errors
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user