Skip to content

Commit 45253a9

Browse files
committed
fix: return struct instead of interface
1 parent bd02289 commit 45253a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/crontab/crontab.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (s cronSchedule) Next(t time.Time) time.Time {
4444
return s.sched.Next(t)
4545
}
4646

47-
func Parse(spec string) (WeeklySchedule, error) {
47+
func Parse(spec string) (*cronSchedule, error) {
4848
specSched, err := defaultParser.Parse(spec)
4949
if err != nil {
5050
return nil, xerrors.Errorf("parse schedule: %w", err)

0 commit comments

Comments
 (0)