Commit 98cc07ee authored by Micaël Bergeron's avatar Micaël Bergeron

apply feedback

parent 47f320dc
......@@ -56,10 +56,8 @@ class FileUploader < GitlabUploader
def self.model_path_segment(model)
case model
when Storage::HashedProject then model.disk_path
when Project then
model.hashed_storage?(:attachments) ? model.disk_path : model.full_path
else
model.full_path
model.hashed_storage?(:attachments) ? model.disk_path : model.full_path
end
end
......@@ -148,9 +146,6 @@ class FileUploader < GitlabUploader
private
def hashed_model
end
def apply_context!(uploader_context)
@secret, @identifier = uploader_context.values_at(:secret, :identifier)
......
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