From 24499c268c733ae927b1278e7e6005c062809cc7 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Fri, 12 Jul 2024 18:43:09 +0000 Subject: [PATCH] newlines Signed-off-by: Austin Abro --- src/pkg/lint/lint.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pkg/lint/lint.go b/src/pkg/lint/lint.go index 5ee3a1dbea..4fa331e75a 100644 --- a/src/pkg/lint/lint.go +++ b/src/pkg/lint/lint.go @@ -25,7 +25,6 @@ func Validate(ctx context.Context, createOpts types.ZarfCreateOptions) error { if err := os.Chdir(createOpts.BaseDir); err != nil { return fmt.Errorf("unable to access directory %q: %w", createOpts.BaseDir, err) } - var pkg types.ZarfPackage if err := utils.ReadYaml(layout.ZarfYAML, &pkg); err != nil { return err @@ -36,7 +35,6 @@ func Validate(ctx context.Context, createOpts types.ZarfCreateOptions) error { return err } findings = append(findings, compFindings...) - schemaFindings, err := ValidateSchema() if err != nil { return err @@ -47,13 +45,10 @@ func Validate(ctx context.Context, createOpts types.ZarfCreateOptions) error { message.Successf("0 findings for %q", pkg.Metadata.Name) return nil } - PrintFindings(findings, SevWarn, createOpts.BaseDir, pkg.Metadata.Name) - if HasSevOrHigher(findings, SevErr) { return errors.New("errors during lint") } - return nil }