mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
Ternary operator syntax fix
let to const and syntax update
This commit is contained in:
@@ -257,9 +257,9 @@ function parse(so) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const field_bits = tag_byte & 0x0f;
|
const field_bits = tag_byte & 0x0f;
|
||||||
let field_name = (field_bits === 0)
|
const field_name = (field_bits === 0)
|
||||||
? field_name = binformat.fields[type_bits][so.read(1)[0]]
|
? binformat.fields[type_bits][so.read(1)[0]]
|
||||||
: field_name = binformat.fields[type_bits][field_bits];
|
: binformat.fields[type_bits][field_bits];
|
||||||
|
|
||||||
assert(field_name, 'Unknown field - header byte is 0x'
|
assert(field_name, 'Unknown field - header byte is 0x'
|
||||||
+ tag_byte.toString(16));
|
+ tag_byte.toString(16));
|
||||||
|
|||||||
Reference in New Issue
Block a user