File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,7 @@ interface StreamingContext {
4040 */
4141function hasSuccessResult ( result : unknown ) : boolean {
4242 return (
43- typeof result === "object" &&
44- result !== null &&
45- "success" in result &&
46- result . success === true
43+ typeof result === "object" && result !== null && "success" in result && result . success === true
4744 ) ;
4845}
4946
@@ -52,14 +49,10 @@ function hasSuccessResult(result: unknown): boolean {
5249 */
5350function hasFailureResult ( result : unknown ) : boolean {
5451 return (
55- typeof result === "object" &&
56- result !== null &&
57- "success" in result &&
58- result . success === false
52+ typeof result === "object" && result !== null && "success" in result && result . success === false
5953 ) ;
6054}
6155
62-
6356export class StreamingMessageAggregator {
6457 private messages = new Map < string , CmuxMessage > ( ) ;
6558 private activeStreams = new Map < string , StreamingContext > ( ) ;
You can’t perform that action at this time.
0 commit comments