Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

chore[Op#51033]: Remove unnecessary conditional (#14449)

Kabiru Mwenjae33ef9824e62
diff --git a/app/services/oauth_clients/create_service.rb b/app/services/oauth_clients/create_service.rb
index 62ef02892ae..13321d9d4f4 100644
--- a/app/services/oauth_clients/create_service.rb
+++ b/app/services/oauth_clients/create_service.rb
@@ -37,7 +37,7 @@ module OAuthClients
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