Commit 7ced294f authored by James Lopez's avatar James Lopez

Merge branch 'tc-geo-tiny-uploader-fix' into 'master'

Geo: small generalization to find path of replicable

See merge request gitlab-org/gitlab!35762
parents 63432f37 c0dfb64e
......@@ -84,9 +84,9 @@ module Gitlab
# @return [Boolean] whether the file exists on storage
def file_exist?
if local?
File.exist?(file.path)
File.exist?(replicator.carrierwave_uploader.path)
else
file.exists?
replicator.carrierwave_uploader.exists?
end
end
end
......
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