Skip to content

Commit 2326ba3

Browse files
fix: add nolint explanation
1 parent 087ac06 commit 2326ba3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stackit/internal/services/postgresflex/user/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ func (r *userResource) Delete(ctx context.Context, req resource.DeleteRequest, r
423423
// Delete existing record set
424424
err := r.client.DeleteUser(ctx, projectId, region, instanceId, userId).Execute()
425425
if err != nil {
426-
oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint
426+
oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped
427427
if ok && oapiErr.StatusCode == http.StatusNotFound {
428428
return
429429
}

0 commit comments

Comments
 (0)