Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions internal/scheduler/parser.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package scheduler

import (
"slices"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -208,12 +209,7 @@ type listMatcher struct {
}

func (m *listMatcher) matches(value int) bool {
for _, v := range m.values {
if v == value {
return true
}
}
return false
return slices.Contains(m.values, value)
}

// stepMatcher matches values at regular intervals.
Expand Down