diff options
author | Eric Wong <e@80x24.org> | 2017-01-02 00:03:25 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-02 00:03:25 +0000 |
commit | 1eb248f6cff5290de7c5abff5d42288615e37d2a (patch) | |
tree | 977f3e2a82afade4af69edf24278474e3e85f403 | |
parent | 6a27326c4ac9459e194bd082cfec200578980517 (diff) | |
download | dtas-1eb248f6cff5290de7c5abff5d42288615e37d2a.tar.gz |
One normal method dispatch is probably preferable to two optimized instructions + immediate.
-rw-r--r-- | lib/dtas/source/sox.rb | 2 |
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! |