Remove redundant extract_to_dir.

This commit is contained in:
Markus Reiter 2018-07-16 20:18:29 +02:00
parent a6aefb43c5
commit 95b0b198a5

View File

@ -295,12 +295,6 @@ class GitUnpackStrategy < DirectoryUnpackStrategy
def self.can_extract?(path:, magic_number:)
super && (path/".git").directory?
end
private
def extract_to_dir(unpack_dir, basename:)
FileUtils.cp_r path.children, unpack_dir, preserve: true
end
end
class SubversionUnpackStrategy < DirectoryUnpackStrategy