Skip to content

Commit

Permalink
chore: removed unused fields and errors
Browse files Browse the repository at this point in the history
Removed the unsued error field from the error struct and the error check
that is no longer needed.
  • Loading branch information
puffitos committed Apr 6, 2024
1 parent 7d96ea0 commit cfe86c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions pkg/sparrow/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ func (cc *ChecksController) Reconcile(ctx context.Context, cfg runtime.Config) {
// Register new checks
for _, c := range newChecks {
cc.RegisterCheck(ctx, c)
if err != nil {
log.ErrorContext(ctx, "Failed to register check", "check", c.Name(), "error", err)
}
}
}

Expand Down
7 changes: 3 additions & 4 deletions pkg/sparrow/run_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
package sparrow

type ErrShutdown struct {
errAPI error
errTarMan error
errCheckCont error
errAPI error
errTarMan error
}

func (e ErrShutdown) HasError() bool {
return e.errAPI != nil || e.errTarMan != nil || e.errCheckCont != nil
return e.errAPI != nil || e.errTarMan != nil
}

0 comments on commit cfe86c7

Please sign in to comment.