removing unnecessary .to_s

This commit is contained in:
feu 2018-07-25 19:46:35 -03:00
parent 9594a56879
commit a0f30934aa
2 changed files with 2 additions and 3 deletions

View File

@ -585,7 +585,7 @@ class SubversionDownloadStrategy < VCSDownloadStrategy
args << url args << url
args << target args << target
elsif svncommand == "update" elsif svncommand == "update"
args << svn_escape(target.to_s) args << svn_escape(target)
end end
if revision if revision
ohai "Checking out #{@ref}" ohai "Checking out #{@ref}"

View File

@ -24,8 +24,7 @@ module UnpackStrategy
private private
def extract_to_dir(unpack_dir, basename:, verbose:) def extract_to_dir(unpack_dir, basename:, verbose:)
path_export = svn_escape(path.to_s) system_command! "svn", args: ["export", "--force", svn_escape(path), unpack_dir]
system_command! "svn", args: ["export", "--force", path_export, unpack_dir]
end end
end end
end end