From d0c43cc5588107b3ea017c65e4832ba5d00a1621 Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 27 Sep 2023 18:58:39 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Jaime Soriano Pastor --- internal/packages/installer/factory.go | 2 +- internal/validation/validation.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/packages/installer/factory.go b/internal/packages/installer/factory.go index 8d88f6452..5309438d2 100644 --- a/internal/packages/installer/factory.go +++ b/internal/packages/installer/factory.go @@ -62,7 +62,7 @@ func NewForPackage(options Options) (Installer, error) { logger.Debugf("Validating built .zip package (path: %s)", options.ZipPath) errs, skipped := validation.ValidateAndFilterFromZip(options.ZipPath) if skipped != nil { - logger.Infof("skipped errors: %v", skipped) + logger.Infof("Skipped errors: %v", skipped) } if errs != nil { return nil, fmt.Errorf("invalid content found in built zip package: %w", errs) diff --git a/internal/validation/validation.go b/internal/validation/validation.go index 2d5379375..59547f81f 100644 --- a/internal/validation/validation.go +++ b/internal/validation/validation.go @@ -24,7 +24,7 @@ func ValidateFromPath(rootPath string) error { } func ValidateFromZip(packagePath string) error { - return validator.ValidateFromPath(packagePath) + return validator.ValidateFromZip(packagePath) } func ValidateAndFilterFromPath(rootPath string) (error, error) {