From fbd896d209c53ca47f7140498a15fdaf70560819 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Mar 2015 18:38:19 +0200 Subject: [PATCH] No need to flatten Git URLS --- app/views/common/_git_urls.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/common/_git_urls.html.haml b/app/views/common/_git_urls.html.haml index 3a20b06c948..1377c176a27 100644 --- a/app/views/common/_git_urls.html.haml +++ b/app/views/common/_git_urls.html.haml @@ -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|