Skip to content

Commit

Permalink
No need to flatten Git URLS
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Mar 31, 2015
1 parent 275c1bc commit fbd896d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/common/_git_urls.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
= javascript_include_tag 'application', plugin: 'redmine_git_hosting'

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

0 comments on commit fbd896d

Please sign in to comment.