Skip to content

Commit

Permalink
Fix golangci-lint 'ineffassign'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jun 6, 2023
1 parent a2f2a6c commit 2143969
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/ec2/ec2_spot_instance_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,10 @@ func resourceSpotInstanceRequestCreate(ctx context.Context, d *schema.ResourceDa
},
)

if err != nil {
return sdkdiag.AppendFromErr(diags, err)
}

return append(diags, resourceSpotInstanceRequestRead(ctx, d, meta)...)
}

Expand Down

0 comments on commit 2143969

Please sign in to comment.