layout: fix nil map

This commit is contained in:
Demian 2020-09-15 18:36:11 +03:00
parent a70d2204db
commit ce6c47adc8

View File

@ -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 &lt, yaml.Unmarshal(data, &lt)
}