Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DeviceFarmer
adbkit-logcat
Commits
2e586389
Commit
2e586389
authored
Aug 22, 2016
by
Simo Kinnunen
Browse files
Remove an unnecessary condition because coffeelint complains about a
long line.
parent
efd936b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/logcat/parser/binary.coffee
View file @
2e586389
...
...
@@ -18,7 +18,7 @@ class Binary extends Parser
headerSize
=
@
buffer
.
readUInt16LE
(
cursor
)
# On v1, headerSize SHOULD be 0, but isn't on some devices. Attempt to
# 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
cursor
+=
2
if
@
buffer
.
length
<
headerSize
+
length
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment