From 1ce14ae529a244a541ef2631676af21294a97f5d Mon Sep 17 00:00:00 2001 From: Stephanie Date: Tue, 16 Feb 2021 11:12:42 -0500 Subject: [PATCH] remove unnecessary else block Signed-off-by: Stephanie --- pkg/devfile/validate/validate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/devfile/validate/validate.go b/pkg/devfile/validate/validate.go index c3ac1e03..c4286607 100644 --- a/pkg/devfile/validate/validate.go +++ b/pkg/devfile/validate/validate.go @@ -70,7 +70,7 @@ func ValidateDevfileData(data devfileData.DevfileData) error { if len(errstrings) > 0 { return fmt.Errorf(strings.Join(errstrings, "\n")) - } else { - return nil } + + return nil }