Skip to content

Commit

Permalink
Ternary operator syntax fix
Browse files Browse the repository at this point in the history
let to const and syntax update
  • Loading branch information
darentuzi committed Jul 15, 2015
1 parent 67e8f6a commit fc4b085
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/serializedtypes.js
Expand Up @@ -257,9 +257,9 @@ function parse(so) {
}

const field_bits = tag_byte & 0x0f;
let field_name = (field_bits === 0)
? field_name = binformat.fields[type_bits][so.read(1)[0]]
: field_name = binformat.fields[type_bits][field_bits];
const field_name = (field_bits === 0)
? binformat.fields[type_bits][so.read(1)[0]]
: binformat.fields[type_bits][field_bits];

assert(field_name, 'Unknown field - header byte is 0x'
+ tag_byte.toString(16));
Expand Down

0 comments on commit fc4b085

Please sign in to comment.