about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-01-02 00:03:25 +0000
committerEric Wong <e@80x24.org>2017-01-02 00:03:25 +0000
commit1eb248f6cff5290de7c5abff5d42288615e37d2a (patch)
tree977f3e2a82afade4af69edf24278474e3e85f403
parent6a27326c4ac9459e194bd082cfec200578980517 (diff)
downloaddtas-1eb248f6cff5290de7c5abff5d42288615e37d2a.tar.gz
One normal method dispatch is probably preferable to two
optimized instructions + immediate.
-rw-r--r--lib/dtas/source/sox.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb
index e436fb1..9f3cd9b 100644
--- a/lib/dtas/source/sox.rb
+++ b/lib/dtas/source/sox.rb
@@ -60,7 +60,7 @@ class DTAS::Source::Sox # :nodoc:
             key = $1.upcase
             key = eval "#{key.inspect}.freeze"
           end
-          (comments[key] ||= ''.b) << "#{line}\n" if line.size > 0
+          (comments[key] ||= ''.b) << "#{line}\n" unless line.empty?
         end
         comments.each do |k,v|
           v.chomp!