Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2016-09-15 19:21:00 +01:00
parent 0674fc58b8
commit d82f9d12ce
10 changed files with 14 additions and 14 deletions

View file

@ -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
# ====================================================================