Fix new rubocop warnings
This commit is contained in:
parent
0674fc58b8
commit
d82f9d12ce
10 changed files with 14 additions and 14 deletions
|
@ -195,7 +195,7 @@ class SwfController < ApplicationController
|
|||
# Find number of bits required to store arbitrary-length binary
|
||||
|
||||
def length_sb(n)
|
||||
Math.frexp(n + (n == 0 ? 1 : 0))[1] + 1
|
||||
Math.frexp(n + (n.zero? ? 1 : 0))[1] + 1
|
||||
end
|
||||
|
||||
# ====================================================================
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue