Skip to content

Commit fbd896d

Browse files
author
root
committed
No need to flatten Git URLS
1 parent 275c1bc commit fbd896d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/common/_git_urls.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
= javascript_include_tag 'application', plugin: 'redmine_git_hosting'
88

99
- repositories = Array.wrap(repository) unless repositories
10-
- if repositories.map(&:available_urls).flatten.reject { |m| m.blank? }.any?
10+
- if repositories.map(&:available_urls).reject { |h| h.empty? }.any?
1111
- repositories.sort_by { |r| r.is_default ? 0 : 1 }.each do |repository|
1212
- next if repository.available_urls.empty?
1313
- present repository do |p|

0 commit comments

Comments
 (0)