Fix rubocop warnings

This commit is contained in:
Tom Hughes 2016-10-20 22:00:56 +01:00
parent 9d106676b8
commit e17b89e89f
17 changed files with 105 additions and 80 deletions

View file

@ -161,10 +161,10 @@ class SwfController < ApplicationController
def swf_record(id, r)
if r.length > 62
# Long header: tag id, 0x3F, length
return pack_u16((id << 6) + 0x3F) + pack_u32(r.length) + r
pack_u16((id << 6) + 0x3F) + pack_u32(r.length) + r
else
# Short header: tag id, length
return pack_u16((id << 6) + r.length) + r
pack_u16((id << 6) + r.length) + r
end
end