fix: fix lint

This commit is contained in:
vicanso 2022-06-25 08:33:05 +08:00
parent da3ad16c23
commit f1276067d7
3 changed files with 7 additions and 6 deletions

View file

@ -321,10 +321,6 @@ func (t *tableChart) Render() (Box, error) {
if !opt.BackgroundColor.IsZero() {
p.SetBackground(p.Width(), p.Height(), opt.BackgroundColor)
}
headerBGColor := opt.HeaderBackgroundColor
if headerBGColor.IsZero() {
headerBGColor = tableDefaultSetting.HeaderColor
}
if opt.Font == nil && opt.FontFamily != "" {
opt.Font, _ = GetFont(opt.FontFamily)
}