From a1198562c51c5374a85d74e1cfe9e6a695384a3d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 26 Aug 2013 00:09:32 +0000 Subject: process: remove redundant "xs" method Shellwords.join is an identical method and there's no reason not to use it. --- lib/dtas/source/sox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dtas/source/sox.rb') diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb index 235cbbc..086b923 100644 --- a/lib/dtas/source/sox.rb +++ b/lib/dtas/source/sox.rb @@ -77,7 +77,7 @@ class DTAS::Source::Sox # :nodoc: end rescue => e if /FAIL formats: no handler for file extension/ =~ err - warn("#{xs(cmd)}: #{err}") + warn("#{Shellwords.escape(cmd)}: #{err}") else warn("#{e.message} (#{e.class})") end -- cgit v1.2.3-24-ge0c7