From fd0d481de8ae8a94b56038da4258fb0cdc0a18a3 Mon Sep 17 00:00:00 2001
From: Mohamed Sekour <mohamed.sekour@exfo.com>
Date: Sat, 18 Jun 2022 05:30:26 +0200
Subject: [PATCH] fix push mirrors URL are no longer displayed on the UI
 (#20011)

* fix push mirrors URL are no longer displayed on the UI

Signed-off-by: Mohamed Sekour <mohamed.sekour@exfo.com>

* Update modules/templates/helper.go

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
---
 modules/templates/helper.go | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index b77928fc9c..99b1979964 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -976,9 +976,6 @@ type remoteAddress struct {
 
 func mirrorRemoteAddress(ctx context.Context, m *repo_model.Repository, remoteName string) remoteAddress {
 	a := remoteAddress{}
-	if !m.IsMirror {
-		return a
-	}
 
 	remoteURL := m.OriginalURL
 	if remoteURL == "" {