mirror of
https://github.com/tucnak/telebot
synced 2024-11-05 06:00:58 +00:00
layout: fix nil map
This commit is contained in:
parent
a70d2204db
commit
ce6c47adc8
@ -43,7 +43,7 @@ func New(path string) (*Layout, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var lt Layout
|
||||
lt := Layout{ctxs: make(map[tele.Context]string)}
|
||||
return <, yaml.Unmarshal(data, <)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user