Commit aefbdcdc authored by Michael Kozono's avatar Michael Kozono

Fix Rubocop offense

parent edb5cac4
...@@ -138,6 +138,7 @@ module Gitlab ...@@ -138,6 +138,7 @@ module Gitlab
def file_uploader_model_id def file_uploader_model_id
matchd = path_relative_to_upload_dir.match(FILE_UPLOADER_CAPTURE_FULL_PATH_PATTERN) 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 raise "Could not capture project full_path from a FileUploader path: \"#{path_relative_to_upload_dir}\"" unless matchd
full_path = matchd[1] full_path = matchd[1]
project = Project.find_by_full_path(full_path) project = Project.find_by_full_path(full_path)
project.id.to_s project.id.to_s
......
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