mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
code cleanup: rubocop: fix Layout/EndAlignment in app/helpers/repositories_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18730 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dbb9abcccd
commit
460ac6adda
@ -166,7 +166,6 @@ Layout/EmptyLinesAroundModuleBody:
|
||||
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
||||
Layout/EndAlignment:
|
||||
Exclude:
|
||||
- 'app/helpers/repositories_helper.rb'
|
||||
- 'app/helpers/versions_helper.rb'
|
||||
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
||||
|
||||
|
||||
@ -139,7 +139,7 @@ module RepositoriesHelper
|
||||
def scm_select_tag(repository)
|
||||
scm_options = [["--- #{l(:actionview_instancetag_blank_option)} ---", '']]
|
||||
Redmine::Scm::Base.all.each do |scm|
|
||||
if Setting.enabled_scm.include?(scm) ||
|
||||
if Setting.enabled_scm.include?(scm) ||
|
||||
(repository && repository.class.name.demodulize == scm)
|
||||
scm_options << ["Repository::#{scm}".constantize.scm_name, scm]
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user