From 82bc5687ced2191583cf6b77f51cd0486be9e0cb Mon Sep 17 00:00:00 2001 From: Chantal Rollison Date: Mon, 13 Aug 2018 10:50:12 -0700 Subject: Modified find project method to return nil if project not found --- app/views/search/results/_blob.html.haml | 2 ++ 1 file changed, 2 insertions(+) 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)) -- cgit v1.2.1