diff options
author | Chantal Rollison <crollison@gitlab.com> | 2018-08-13 10:50:12 -0700 |
---|---|---|
committer | Chantal Rollison <crollison@gitlab.com> | 2018-08-14 06:27:19 -0700 |
commit | 82bc5687ced2191583cf6b77f51cd0486be9e0cb (patch) | |
tree | 1de59b4a63131a345880e9de40f8643f48d64a3f | |
parent | f7f31a6f910325d4456bc3a344bf359f2d59a4ee (diff) | |
download | gitlab-ce-82bc5687ced2191583cf6b77f51cd0486be9e0cb.tar.gz |
Modified find project method to return nil if project not found
-rw-r--r-- | app/views/search/results/_blob.html.haml | 2 |
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)) |