Skip to content

Commit f02c413

Browse files
committed
style: lint
1 parent 0e5c4c7 commit f02c413

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/_browser/decode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ function utf8Read ( view, offset, length ) {
3434
}
3535

3636
class Decoder {
37+
_offset = 0;
38+
3739
constructor ( buffer ) {
38-
this._offset = 0;
3940
if ( buffer instanceof ArrayBuffer ) {
4041
this._buffer = buffer;
4142
this._view = new DataView( this._buffer );

lib/decode-key-cache.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ const DEFAULT_MAX_SIZE = 1024,
22
DEFAULT_MAX_LENGTH = 16;
33

44
export default class DecodeKeyCache {
5+
size = 0;
6+
57
constructor ( { maxSize = DEFAULT_MAX_SIZE, maxLength = DEFAULT_MAX_LENGTH } = {} ) {
6-
this.size = 0;
78
this.maxSize = maxSize;
89
this.maxLength = maxLength;
910
this.cache = new Map();

0 commit comments

Comments
 (0)