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

Fixes Performance/DoubleStartEndWith offenses

Klaus Zandersef100cb41204
diff --git a/app/controllers/oauth/auth_base_controller.rb b/app/controllers/oauth/auth_base_controller.rb
index bedef47028a..22c72c95080 100644
--- a/app/controllers/oauth/auth_base_controller.rb
+++ b/app/controllers/oauth/auth_base_controller.rb
@@ -57,7 +57,7 @@ module OAuth
def application_native_redirect_uris
registered_redirect_uris
- .reject { |url| url.start_with?('http') || url.start_with?('urn') }
+ .reject { |url| url.start_with?('http', 'urn') }
.map(&method(:parse_native_redirect_uri))
.compact
end