chore: return success on no issues

Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
This commit is contained in:
AlexsJones
2023-03-27 12:55:46 +01:00
parent 06fb8073dc
commit 009f47c8e8

View File

@@ -87,6 +87,9 @@ var AnalyzeCmd = &cobra.Command{
var bar *progressbar.ProgressBar var bar *progressbar.ProgressBar
if len(*analysisResults) > 0 { if len(*analysisResults) > 0 {
bar = progressbar.Default(int64(len(*analysisResults))) bar = progressbar.Default(int64(len(*analysisResults)))
} else {
color.Green("{ \"status\": \"OK\" }")
os.Exit(0)
} }
// This variable is used to store the results that will be printed // This variable is used to store the results that will be printed