diff --git a/commands.go b/commands.go index 5a4d3f0..8aeab21 100644 --- a/commands.go +++ b/commands.go @@ -68,6 +68,9 @@ func Tick(d time.Duration, fn func(time.Time) Msg) Cmd { func Sequentially(cmds ...Cmd) Cmd { return func() Msg { for _, cmd := range cmds { + if cmd == nil { + continue + } if msg := cmd(); msg != nil { return msg }