mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-12-19 16:30:07 +08:00
fix a fmt issue
This commit is contained in:
parent
c9205031f3
commit
15028c4925
@ -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)
|
return nil, fmt.Errorf("could you initial Schedule rule %s, the time format is not correct!", punycode)
|
||||||
}
|
}
|
||||||
if startHour > endHour {
|
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 {
|
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{
|
return &Schedule{
|
||||||
Base: &Base{},
|
Base: &Base{},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user