summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChantal Rollison <crollison@gitlab.com>2018-08-13 10:50:12 -0700
committerChantal Rollison <crollison@gitlab.com>2018-08-14 06:27:19 -0700
commit82bc5687ced2191583cf6b77f51cd0486be9e0cb (patch)
tree1de59b4a63131a345880e9de40f8643f48d64a3f
parentf7f31a6f910325d4456bc3a344bf359f2d59a4ee (diff)
downloadgitlab-ce-82bc5687ced2191583cf6b77f51cd0486be9e0cb.tar.gz
Modified find project method to return nil if project not found
-rw-r--r--app/views/search/results/_blob.html.haml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/search/results/_blob.html.haml b/app/views/search/results/_blob.html.haml
index fdcd126e7a3..a8d4d4af93a 100644
--- a/app/views/search/results/_blob.html.haml
+++ b/app/views/search/results/_blob.html.haml
@@ -1,4 +1,6 @@
- project = find_project_for_result_blob(blob)
+- return unless project
+
- file_name, blob = parse_search_result(blob)
- blob_link = project_blob_path(project, tree_join(blob.ref, file_name))