Revert changes in skip analysis condition

This commit is contained in:
Daniel Albuquerque
2020-09-18 18:43:27 +01:00
parent 4b098cc7a2
commit 0eee5b7402
2 changed files with 2 additions and 2 deletions

View File

@@ -428,7 +428,7 @@ func (c *Canary) GetMetricInterval() string {
// SkipAnalysis returns true if the analysis is nil
// or if spec.SkipAnalysis is true
func (c *Canary) SkipAnalysis() bool {
if c.Spec.Analysis == nil || c.Spec.CanaryAnalysis == nil {
if c.Spec.Analysis == nil && c.Spec.CanaryAnalysis == nil {
return true
}
return c.Spec.SkipAnalysis