diff --git a/pkg/handler/handler.go b/pkg/handler/handler.go index 31d332a..a6d94f4 100644 --- a/pkg/handler/handler.go +++ b/pkg/handler/handler.go @@ -71,7 +71,9 @@ func AnalyzeCode() error { } for _, r := range results { - log.Printf("Scanned file %s and found %d flag usages", r.File, len(r.Results)) + if len(results) > 0 { + log.Printf("Scanned file %s and found %d flag usages", r.File, len(r.Results)) + } } err = api.SendFlagsToAPI(results, envID)