Skip to content
Snippets Groups Projects

Refactor LfsImportService and ImportService

Merged Francisco Javier López requested to merge fj-refactor-lfs-import-code into master
All threads resolved!
Files
11
@@ -21,9 +21,9 @@ def initialize(project, remote_uri: nil)
# This method accepts two parameters:
# - oids: hash of oids to query. The structure is { lfs_file_oid => lfs_file_size }
#
# Returns a hash with the structure { lfs_file_oids => download_link }
# Returns a array of LfsDownloadObject
def execute(oids)
return {} unless project&.lfs_enabled? && remote_uri && oids.present?
return [] unless project&.lfs_enabled? && remote_uri && oids.present?
get_download_links(oids)
end
Loading