summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-11-21 16:05:33 -0800
committerMichael Kozono <mkozono@gmail.com>2017-12-01 15:26:41 -0800
commitaefbdcdcf25cbcd8d80dcaa3216264d91bdcac91 (patch)
tree640012dfd51a812c0453f2607849e7981eed09f5
parentedb5cac46c1cba1029fb3e67d4853027590584f6 (diff)
downloadgitlab-ce-aefbdcdcf25cbcd8d80dcaa3216264d91bdcac91.tar.gz
Fix Rubocop offense
-rw-r--r--lib/gitlab/background_migration/populate_untracked_uploads.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/background_migration/populate_untracked_uploads.rb b/lib/gitlab/background_migration/populate_untracked_uploads.rb
index f28892174bb..b8872477e63 100644
--- a/lib/gitlab/background_migration/populate_untracked_uploads.rb
+++ b/lib/gitlab/background_migration/populate_untracked_uploads.rb
@@ -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