Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jaime Soriano Pastor <[email protected]>
  • Loading branch information
mrodm and jsoriano authored Sep 27, 2023
1 parent ab17f6a commit d0c43cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/packages/installer/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d0c43cc

Please sign in to comment.