Skip to content
Snippets Groups Projects
Commit aefbdcdc authored by Michael Kozono's avatar Michael Kozono
Browse files

Fix Rubocop offense

parent edb5cac4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -138,6 +138,7 @@ module Gitlab
def file_uploader_model_id
matchd = path_relative_to_upload_dir.match(FILE_UPLOADER_CAPTURE_FULL_PATH_PATTERN)
raise "Could not capture project full_path from a FileUploader path: \"#{path_relative_to_upload_dir}\"" unless matchd
full_path = matchd[1]
project = Project.find_by_full_path(full_path)
project.id.to_s
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment