Fix automatic linter warning
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -305,8 +305,9 @@ | ... | @@ -305,8 +305,9 @@ |
305 | event.attributes = parseAttributes(match[1]); | 305 | event.attributes = parseAttributes(match[1]); |
306 | // parse the IV string into a Uint32Array | 306 | // parse the IV string into a Uint32Array |
307 | if (event.attributes.IV) { | 307 | if (event.attributes.IV) { |
308 | if (event.attributes.IV.substring(0,2) == '0x') | 308 | if (event.attributes.IV.substring(0,2) === '0x') { |
309 | event.attributes.IV = event.attributes.IV.substring(2); | 309 | event.attributes.IV = event.attributes.IV.substring(2); |
310 | } | ||
310 | 311 | ||
311 | event.attributes.IV = event.attributes.IV.match(/.{8}/g); | 312 | event.attributes.IV = event.attributes.IV.match(/.{8}/g); |
312 | event.attributes.IV[0] = parseInt(event.attributes.IV[0], 16); | 313 | event.attributes.IV[0] = parseInt(event.attributes.IV[0], 16); | ... | ... |
-
Please register or sign in to post a comment