fix style.Styles.Get

This commit is contained in:
Mahdi Abu Yasmine 2023-11-04 18:14:36 +01:00
parent 6a5875b94c
commit bd0bb96234

View File

@ -83,8 +83,9 @@ func NewStyles() *Styles {
}
func (s *Styles) Get(name string) *Style {
style, ok := s.List[name]
if !ok {
var style *Style
var ok bool = false
if style, ok = s.List[name]; !ok {
style = defStyle
}
return style