Modified find project method to return nil if project not found

This commit is contained in:
Chantal Rollison 2018-08-13 10:50:12 -07:00
parent f7f31a6f91
commit 82bc5687ce
1 changed files with 2 additions and 0 deletions

View File

@ -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))