From: Go MAEDA Date: Wed, 27 Dec 2023 06:02:22 +0000 (+0000) Subject: Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) introduced... X-Git-Tag: 6.0.0~544 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4383e0fbbce553c1a1a6cad50424f93889a26e65;p=redmine.git Fix RuboCop offense Style/HashSyntax (Don't mix styles in the same hash) introduced in r22563 (#39747, #36320). git-svn-id: https://svn.redmine.org/redmine/trunk@22565 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/config/routes.rb b/config/routes.rb index 15aa87de4..540f3d0af 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -300,12 +300,12 @@ Rails.application.routes.draw do get "projects/:id/repository/:repository_id/revisions/:rev/diff(/*path)", :to => 'repositories#diff', :format => 'html', - :constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/, format: /(html|diff)/ } + :constraints => {:rev => /[a-z0-9\.\-_]+/, :path => /.*/, :format => /(html|diff)/ } get "projects/:id/repository/:repository_id/diff(/*path)", :to => 'repositories#diff', :format => 'html', - :constraints => {:path => /.*/, format: /(html|diff)/ } + :constraints => {:path => /.*/, :format => /(html|diff)/ } get 'projects/:id/repository/:repository_id/show/*path', :to => 'repositories#show', :format => 'html', :constraints => {:path => /.*/}