Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: lint (#15980)

ecmadao16d0f335cfdb
diff --git a/action/api.go b/action/api.go
index 9d53eb718c..d0d3353119 100644
--- a/action/api.go
+++ b/action/api.go
@@ -188,6 +188,9 @@ func (c *Client) createPlan(project string, r *v1pb.Plan) (*v1pb.Plan, error) {
return resp, nil
}
+// TODO(p0ny):
+//
+//nolint:unused
func (c *Client) getRollout(project, rolloutID string) (*v1pb.Rollout, error) {
req, err := http.NewRequest("GET", fmt.Sprintf("%s/v1/%s/rollouts/%s", c.url, project, rolloutID), nil)
if err != nil {
diff --git a/action/main.go b/action/main.go
index 3f4eac09d3..53134650b5 100644
--- a/action/main.go
+++ b/action/main.go
@@ -121,6 +121,9 @@ func runRollout(*cobra.Command, []string) error {
Files: releaseFiles,
VcsSource: nil, // TODO(p0ny): impl
})
+ if err != nil {
+ return errors.Wrapf(err, "failed to create release")
+ }
planPreview, err := client.previewPlan(Config.Project, &v1pb.PreviewPlanRequest{
Release: createReleaseResponse.Name,