Skip to content

Commit 917cd12

Browse files
committed
Fix lint errors
1 parent 8eaac00 commit 917cd12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/function_resource.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func (r *functionResource) Create(ctx context.Context, req resource.CreateReques
159159
resp.State.SetAttribute(ctx, path.Root("id"), function.Id)
160160

161161
var state models.FunctionState
162-
state.Fill(api.FunctionV1(function))
162+
state.Fill(function)
163163

164164
// Destination functions append workspace name to display name causing inconsistency
165165
if state.ResourceType.ValueString() == "DESTINATION" || state.ResourceType.ValueString() == "INSERT_DESTINATION" {
@@ -256,7 +256,7 @@ func (r *functionResource) Update(ctx context.Context, req resource.UpdateReques
256256

257257
function := out.Data.GetFunction()
258258

259-
state.Fill(api.FunctionV1(function))
259+
state.Fill(function)
260260

261261
// Destination functions append workspace name to display name causing inconsistency
262262
if state.ResourceType.ValueString() == "DESTINATION" || state.ResourceType.ValueString() == "INSERT_DESTINATION" {

0 commit comments

Comments
 (0)