about summary refs log tree commit homepage
path: root/bin/dtas-cueedit
diff options
authorEric Wong <e@80x24.org>2015-04-13 00:59:02 +0000
committerEric Wong <e@80x24.org>2015-04-13 00:59:02 +0000
commit7681d9416cae1236e31cdada571ec163b3d02d9b (patch)
tree8317f6ebe52cce5f9399bab9de82c8a789c5cb27 /bin/dtas-cueedit
parentc4ffed8a441fb0f16f0d206218b3580ae4460797 (diff)
We already convert xs arg to be an Array, so avoid bloating
our code with redundancy.
Diffstat (limited to 'bin/dtas-cueedit')
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dtas-cueedit b/bin/dtas-cueedit
index a2056d3..603bf28 100755
--- a/bin/dtas-cueedit
+++ b/bin/dtas-cueedit
@@ -49,7 +49,7 @@ ARGV.each do |file|
     # avoid an expensive update if the user didn't change anything
     current = File.binread(tmp.path)
     if current == original
-      $stderr.puts "tags for #{xs(Array(file))} unchanged" if $DEBUG
+      $stderr.puts "tags for #{xs(file)} unchanged" if $DEBUG
@@ -65,7 +65,7 @@ ARGV.each do |file|
       warn err_msg(cmd, $?)
       warn "E: restoring original from backup"
       x!(*%W(metaflac --import-cuesheet-from=#{backup.path} #{file}))
-      warn "E: backup cuesheet restored, #{xs(Array(file))} unchanged"
+      warn "E: backup cuesheet restored, #{xs(file)} unchanged"