mirror of https://github.com/shunfei/cronsun
bugfix: emit nil event
parent
9ff3c7eec1
commit
5a1d0fe590
|
@ -24,7 +24,7 @@ func On(name string, fs ...func(interface{})) error {
|
|||
}
|
||||
|
||||
for _, f := range fs {
|
||||
if fs == nil {
|
||||
if f == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue