diff options
| author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-10-26 18:46:25 +0500 |
|---|---|---|
| committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-10-26 18:46:25 +0500 |
| commit | d62200cad430565bd9f80befaf329297120330b5 (patch) | |
| tree | 6217dd41e6f86e657513b509ed7a3f2bfdfa70ab /lib/utils.rb | |
| parent | f6a67fbad5119e3d95e33cfd4f4e4992707d5ba0 (diff) | |
| download | gitlab-ce-d62200cad430565bd9f80befaf329297120330b5.tar.gz | |
clean-up code
* Remove trailing whitespace
* Converts hard-tabs into two-space soft-tabs
* Remove consecutive blank lines
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 |
