Skip to content

Commit

Permalink
Fixed few linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pradumnapandit committed Mar 15, 2024
1 parent df3e61e commit a5ed311
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package api
import "time"

type Metadata struct {
ID string `json:"id"`
ID string `json:"id"`

Check failure on line 9 in pkg/api/api.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
Annotations map[string]string `json:"annotations"`
Labels map[string]string `json:"labels"`

Expand Down
1 change: 0 additions & 1 deletion pkg/controllers/image_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ func (r *ImageReconciler) reconcileImage(ctx context.Context, id string) error {
if _, err = r.images.Update(ctx, img); err != nil {
return fmt.Errorf("failed to update image metadate: %w", err)
}

log.V(1).Info("Successfully reconciled image")

return nil
Expand Down
3 changes: 0 additions & 3 deletions pkg/omap/omap.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ type CreateStrategy[E api.Object] interface {
PrepareForCreate(obj E)
}


var ErrResourceVersionNotLatest = errors.New("resourceVersion is not latest")

type Options[E api.Object] struct {
Expand Down Expand Up @@ -248,8 +247,6 @@ func (s *Store[E]) Update(ctx context.Context, obj E) (E, error) {
if err != nil {
return utils.Zero[E](), err
}


s.enqueue(store.WatchEvent[E]{
Type: store.WatchEventTypeUpdated,
Object: obj,
Expand Down

0 comments on commit a5ed311

Please sign in to comment.