Commit 82bc5687 authored by Chantal Rollison's avatar Chantal Rollison

Modified find project method to return nil if project not found

parent f7f31a6f
- project = find_project_for_result_blob(blob) - project = find_project_for_result_blob(blob)
- return unless project
- file_name, blob = parse_search_result(blob) - file_name, blob = parse_search_result(blob)
- blob_link = project_blob_path(project, tree_join(blob.ref, file_name)) - blob_link = project_blob_path(project, tree_join(blob.ref, file_name))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment