Skip to content

Commit

Permalink
newlines
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Jul 23, 2024
1 parent 29bbf6a commit 24499c2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pkg/lint/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
}

Expand Down

0 comments on commit 24499c2

Please sign in to comment.