more idiomatic comparisons with constants
commita753376878eebf42047550ccf5fa881129d8048d
authorEric Wong <e@80x24.org>
Mon, 14 Sep 2015 09:35:40 +0000 (14 09:35 +0000)
committerEric Wong <e@80x24.org>
Mon, 14 Sep 2015 10:15:02 +0000 (14 10:15 +0000)
treec8695d04cd7f40e6aa6aba3de90fe2ad8f50fd3c
parentf1eaa4adeeddcd811d0de5d0abda818b009eb80e
more idiomatic comparisons with constants

These generates smaller bytecode than explicitly
comparing to a constant value.
lib/mogilefs/bigfile/filter.rb
lib/mogilefs/new_file/stream.rb