mirror of
https://github.com/Fishwaldo/sched.git
synced 2025-07-24 05:48:55 +00:00
fix: Return error by Value, Not Pointer
This commit is contained in:
parent
cc3409e03c
commit
60dfaa0397
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ func (s *Scheduler) GetSchedule(id string) (*Schedule, error) {
|
|||
defer s.mx.Unlock()
|
||||
j, ok := s.schedules[id];
|
||||
if !ok {
|
||||
return nil, &ErrorScheduleNotFound{"Schedule Not Found"}
|
||||
return nil, ErrorScheduleNotFound{"Schedule Not Found"}
|
||||
}
|
||||
return j, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue