File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ export class Gitpod {
803803 loggerFor ( this ) . info ( `${ responseInfo } - ${ retryMessage } ` ) ;
804804
805805 const errText = await response . text ( ) . catch ( ( err : any ) => castToError ( err ) . message ) ;
806- const errJSON = safeJSON ( errText ) ;
806+ const errJSON = safeJSON ( errText ) as any ;
807807 const errMessage = errJSON ? undefined : errText ;
808808
809809 loggerFor ( this ) . debug (
Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ export class JSONLDecoder<T> {
1616 const lineDecoder = new LineDecoder ( ) ;
1717 for await ( const chunk of this . iterator ) {
1818 for ( const line of lineDecoder . decode ( chunk ) ) {
19- yield JSON . parse ( line ) ;
19+ yield JSON . parse ( line ) as T ;
2020 }
2121 }
2222
2323 for ( const line of lineDecoder . flush ( ) ) {
24- yield JSON . parse ( line ) ;
24+ yield JSON . parse ( line ) as T ;
2525 }
2626 }
2727
You can’t perform that action at this time.
0 commit comments