Commit 2e586389 authored by Simo Kinnunen's avatar Simo Kinnunen
Browse files

Remove an unnecessary condition because coffeelint complains about a

long line.
parent efd936b9
...@@ -18,7 +18,7 @@ class Binary extends Parser ...@@ -18,7 +18,7 @@ class Binary extends Parser
headerSize = @buffer.readUInt16LE(cursor) headerSize = @buffer.readUInt16LE(cursor)
# On v1, headerSize SHOULD be 0, but isn't on some devices. Attempt to # On v1, headerSize SHOULD be 0, but isn't on some devices. Attempt to
# avoid that situation by discarding values that are obviously incorrect. # avoid that situation by discarding values that are obviously incorrect.
if headerSize is 0 or headerSize < HEADER_SIZE_V1 or headerSize > HEADER_SIZE_MAX if headerSize < HEADER_SIZE_V1 or headerSize > HEADER_SIZE_MAX
headerSize = HEADER_SIZE_V1 headerSize = HEADER_SIZE_V1
cursor += 2 cursor += 2
if @buffer.length < headerSize + length if @buffer.length < headerSize + length
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment