Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2016-10-06 20:49:26 +0300
committerFilipa Lacerda <filipa@gitlab.com>2016-10-06 20:49:26 +0300
commite369455f73f34d74bb1ecbaacbb1fbf07292eda6 (patch)
tree6930187e2c6cb912b8a8d17c2d552b4a2dac0194 /app/views
parentce368e7435539c371764cb66944f43fed9b49524 (diff)
Removes `try`
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/deployments/_actions.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/deployments/_actions.haml b/app/views/projects/deployments/_actions.haml
index 8cb0b5825e0..d7367890e99 100644
--- a/app/views/projects/deployments/_actions.haml
+++ b/app/views/projects/deployments/_actions.haml
@@ -1,7 +1,7 @@
- if can?(current_user, :create_deployment, deployment) && deployment.deployable
.pull-right
- - external_url = deployment.environment.try(:external_url)
+ - external_url = deployment.environment.external_url
- if external_url
= link_to external_url, target: '_blank', class: 'btn external-url' do
= icon('external-link')