diff options
Diffstat (limited to 'lib/utils.rb')
-rw-r--r-- | lib/utils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.rb b/lib/utils.rb index e57121a3e2a..f43e2edd207 100644 --- a/lib/utils.rb +++ b/lib/utils.rb @@ -1,8 +1,8 @@ module Utils module FileHelper - def binary?(string) + def binary?(string) string.each_byte do |x| - x.nonzero? or return true + x.nonzero? or return true end false end |