Skip to content

Commit

Permalink
chore[Op#51033]: Remove unnecessary conditional (#14449)
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru authored Dec 20, 2023
1 parent 52b5d95 commit e33ef98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/oauth_clients/create_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CreateService < ::BaseServices::Create
protected

def after_validate(params, contract_call)
OAuthClient.where(integration: params[:integration]).delete_all if contract_call.success?
OAuthClient.where(integration: params[:integration]).delete_all
super(params, contract_call)
end
end
Expand Down

0 comments on commit e33ef98

Please sign in to comment.