Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
  • Loading branch information
mheon committed Feb 17, 2022
1 parent ae9ad41 commit 15cb918
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions pkg/bindings/manifests/manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func Add(ctx context.Context, name string, options *AddOptions) (string, error)
func Remove(ctx context.Context, name, digest string, _ *RemoveOptions) (string, error) {
optionsv4 := new(ModifyOptions).WithOperation("remove")
return Modify(ctx, name, []string{digest}, optionsv4)

}

// Push takes a manifest list and pushes to a destination. If the destination is not specified,
Expand Down Expand Up @@ -203,15 +202,14 @@ func Modify(ctx context.Context, name string, images []string, options *ModifyOp
return report.ID, &errModel
}
return report.ID, nil
} else {
errModel := errorhandling.ErrorModel{
ResponseCode: response.StatusCode,
}
if err = jsoniter.Unmarshal(data, &errModel); err != nil {
return "", errors.Wrap(err, "unable to decode API response")
}
return "", &errModel
}
errModel := errorhandling.ErrorModel{
ResponseCode: response.StatusCode,
}
if err = jsoniter.Unmarshal(data, &errModel); err != nil {
return "", errors.Wrap(err, "unable to decode API response")
}
return "", &errModel
}

// Annotate modifies the given manifest list using options and the optional list of images
Expand Down

0 comments on commit 15cb918

Please sign in to comment.