File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 20
20
"prettier/prettier" : " error" ,
21
21
"tsdoc/syntax" : " warn" ,
22
22
"no-console" : " error" ,
23
+ "valid-typeof" : " error" ,
23
24
"eqeqeq" : [
24
25
" error" ,
25
26
" always" ,
Original file line number Diff line number Diff line change @@ -55,16 +55,16 @@ export class StreamDescription {
55
55
56
56
receiveResponse ( response : Document ) : void {
57
57
this . type = parseServerType ( response ) ;
58
- RESPONSE_FIELDS . forEach ( field => {
59
- if ( typeof response [ field ] != null ) {
58
+ for ( const field of RESPONSE_FIELDS ) {
59
+ if ( response [ field ] != null ) {
60
60
this [ field ] = response [ field ] ;
61
61
}
62
62
63
63
// testing case
64
64
if ( '__nodejs_mock_server__' in response ) {
65
65
this . __nodejs_mock_server__ = response [ '__nodejs_mock_server__' ] ;
66
66
}
67
- } ) ;
67
+ }
68
68
69
69
if ( response . compression ) {
70
70
this . compressor = this . compressors . filter ( c => response . compression ?. includes ( c ) ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments