summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-01-19 14:38:45 -0500
committerJacob Schatz <jacobschatz@Jacobs-MBP.fios-router.home>2016-01-19 14:38:45 -0500
commit60dbc4f68774049f809017a56914f465bfe026fe (patch)
tree9c8441da170153f7b51f55323293f88bd7044748
parentecbb8d73eb5fc9e3b388a2803c2bd7129c111b98 (diff)
downloadgitlab-ce-60dbc4f68774049f809017a56914f465bfe026fe.tar.gz
Removes `defined?` in favor to just `if`
-rw-r--r--app/views/layouts/header/_default.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/header/_default.html.haml b/app/views/layouts/header/_default.html.haml
index ec1bdf69095..b62a19d43ba 100644
--- a/app/views/layouts/header/_default.html.haml
+++ b/app/views/layouts/header/_default.html.haml
@@ -37,6 +37,6 @@
%h1.title= title
= render 'shared/outdated_browser'
--if defined?(@project)
+-if @project
:javascript
var findFileURL = '#{namespace_project_find_file_path(@project.namespace, @project, @ref || @project.repository.root_ref)}'; \ No newline at end of file