File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
packages/client/lib/client/RESP2/composers Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
import { Composer } from './interface' ;
2
2
3
3
export default class BufferComposer implements Composer < Buffer > {
4
- # chunks: Array < Buffer > = [ ] ;
4
+ private chunks : Array < Buffer > = [ ] ;
5
5
6
6
write ( buffer : Buffer ) : void {
7
- this . # chunks. push ( buffer ) ;
7
+ this . chunks . push ( buffer ) ;
8
8
}
9
9
10
10
end ( buffer : Buffer ) : Buffer {
11
11
this . write ( buffer ) ;
12
- return Buffer . concat ( this . # chunks. splice ( 0 ) ) ;
12
+ return Buffer . concat ( this . chunks . splice ( 0 ) ) ;
13
13
}
14
14
}
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ import { StringDecoder } from 'string_decoder';
2
2
import { Composer } from './interface' ;
3
3
4
4
export default class StringComposer implements Composer < string > {
5
- # decoder = new StringDecoder ( ) ;
5
+ private decoder = new StringDecoder ( ) ;
6
6
7
- # string = '' ;
7
+ private string = '' ;
8
8
9
9
write ( buffer : Buffer ) : void {
10
- this . # string += this . # decoder. write ( buffer ) ;
10
+ this . string += this . decoder . write ( buffer ) ;
11
11
}
12
12
13
13
end ( buffer : Buffer ) : string {
14
- const string = this . # string + this . # decoder. end ( buffer ) ;
15
- this . # string = '' ;
14
+ const string = this . string + this . decoder . end ( buffer ) ;
15
+ this . string = '' ;
16
16
return string ;
17
17
}
18
18
}
You can’t perform that action at this time.
0 commit comments