From c05d78915190775fa9a79d8ebc85f57398331266 Mon Sep 17 00:00:00 2001 From: Emanuel Bennici Date: Thu, 21 Nov 2019 14:52:18 +0100 Subject: [PATCH] Fix CircleCI 'test-style' error The Code is correct and works correctly, but CircleCI claims that it is wrong. Signed-off-by: Emanuel Bennici --- cmd/helm/outdated.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/helm/outdated.go b/cmd/helm/outdated.go index 77ae7e906..d86a18947 100644 --- a/cmd/helm/outdated.go +++ b/cmd/helm/outdated.go @@ -195,12 +195,12 @@ func searchChart(r []*search.Result, name string, chartVersion string, devel boo debug("Using '%s' as constrain against '%s'", constrainStr, result.Chart.Metadata.Version) if constrain.Check(version) { return result, nil - } else { - // set 'found' to true because a Repository contains - // the Chart but the Version is not newer than - // the installed one. - found = true } + + // set 'found' to true because a Repository contains + // the Chart but the Version is not newer than + // the installed one. + found = true } }