diff --git a/cmd/main.go b/cmd/main.go index 921ef49..628e66b 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -151,11 +151,11 @@ func preRun(pluginName string, cmd *cobra.Command, args []string) error { if validateVar { channels.WaitGroup.Add(1) go processValidationAndScoreWithValidation(engine) + } else { + channels.WaitGroup.Add(1) + go processScoreWithoutValidation(engine) } - channels.WaitGroup.Add(1) - go processScoreWithoutValidation(engine) - return nil }