BigW Consortium Gitlab

Commit 0d960fac by Shinya Maeda

JobArtifactUploader#open raise execption if its not Filestorage

parent 14d17156
......@@ -14,7 +14,9 @@ class JobArtifactUploader < GitlabUploader
end
def open
File.open(path, "rb")
raise 'Only File System is supported' unless file_storage?
File.open(path) if path
end
private
......
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