From e9c7f45c420cdbe3685850e9d463733f2e9743fa Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Thu, 15 Aug 2024 18:26:59 -0700 Subject: [PATCH] chore: sometimes its not empty its just 0 --- pkg/kromgo/kromgo.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/kromgo/kromgo.go b/pkg/kromgo/kromgo.go index 5420113..ba6551e 100644 --- a/pkg/kromgo/kromgo.go +++ b/pkg/kromgo/kromgo.go @@ -31,12 +31,10 @@ func NewKromgoHandler(config configuration.KromgoConfig) (*KromgoHandler, error) } size := config.Badge.Size - if size < 0 { + if size <= 0 { size = 11 } - log.Info("badge gen", zap.Int("size", size), zap.String("font", font)) - badgeGenerator, err := badge.NewGenerator(font, size) if err != nil { return nil, err