chore(provider): fix lint errors and add missing file

This commit is contained in:
Julien Dessaux 2025-05-26 14:51:01 +02:00
parent 7e1e9eb26b
commit 1760c847c9
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 25 additions and 4 deletions

View file

@ -138,7 +138,7 @@ func (d *RepositoryActionsVariableResource) Update(ctx context.Context, req reso
plannedData.Name.ValueString(),
plannedData.Data.ValueString())
if err != nil {
resp.Diagnostics.AddError("UpdateRepositoryActionsVariable", fmt.Sprintf("failed to update repository actions variable %s %s: %s", stateData.Name.ValueString(), err))
resp.Diagnostics.AddError("UpdateRepositoryActionsVariable", fmt.Sprintf("failed to update repository actions variable: %s", err))
return
}
resp.Diagnostics.Append(resp.State.Set(ctx, &plannedData)...)

View file

@ -187,5 +187,5 @@ func (d *RepositoryPushMirrorResource) Read(ctx context.Context, req resource.Re
}
func (d *RepositoryPushMirrorResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) {
resp.Diagnostics.AddError("UpdateRepositoryPushMirror", fmt.Sprintf("unreachable code"))
resp.Diagnostics.AddError("UpdateRepositoryPushMirror", "unreachable code")
}