fix a fmt issue

This commit is contained in:
Parental Clash 2024-06-30 11:54:00 -07:00
parent 9e1f168551
commit 5b461475f3

View file

@ -97,10 +97,10 @@ func NewSchedule(schedule string, adapter string) (*Schedule, error) {
return nil, fmt.Errorf("could you initial Schedule rule %s, the time format is not correct!", punycode)
}
if startHour > endHour {
return nil, fmt.Errorf("could you initial Schedule rule %s, the end time should not be earlier than start time s!", punycode)
return nil, fmt.Errorf("could you initial Schedule rule %s, the end time should not be earlier than start time!", punycode)
}
if startHour == endHour && startMinute > endMinute {
return nil, fmt.Errorf("could you initial Schedule rule %s, the end time should not be earlier than start time s!", punycode)
return nil, fmt.Errorf("could you initial Schedule rule %s, the end time should not be earlier than start time!", punycode)
}
return &Schedule{
Base: &Base{},