@@ -296,7 +296,7 @@ export class CodeQLCliServer implements Disposable {
296296 ) ;
297297 }
298298
299- return await spawnServer (
299+ return spawnServer (
300300 codeQlPath ,
301301 "CodeQL CLI Server" ,
302302 [ "execute" , "cli-server" ] ,
@@ -456,7 +456,7 @@ export class CodeQLCliServer implements Disposable {
456456 void logStream ( child . stderr ! , logger ) ;
457457 }
458458
459- for await ( const event of await splitStreamAtSeparators ( child . stdout ! , [
459+ for await ( const event of splitStreamAtSeparators ( child . stdout ! , [
460460 "\0" ,
461461 ] ) ) {
462462 yield event ;
@@ -488,7 +488,7 @@ export class CodeQLCliServer implements Disposable {
488488 cancellationToken ?: CancellationToken ,
489489 logger ?: Logger ,
490490 ) : AsyncGenerator < EventType , void , unknown > {
491- for await ( const event of await this . runAsyncCodeQlCliCommandInternal (
491+ for await ( const event of this . runAsyncCodeQlCliCommandInternal (
492492 command ,
493493 commandArgs ,
494494 cancellationToken ,
@@ -751,7 +751,7 @@ export class CodeQLCliServer implements Disposable {
751751 ...testPaths ,
752752 ] ) ;
753753
754- for await ( const event of await this . runAsyncCodeQlCliCommand < TestCompleted > (
754+ for await ( const event of this . runAsyncCodeQlCliCommand < TestCompleted > (
755755 [ "test" , "run" ] ,
756756 subcommandArgs ,
757757 "Run CodeQL Tests" ,
@@ -1561,7 +1561,7 @@ const lineEndings = ["\r\n", "\r", "\n"];
15611561 * @param logger The logger that will consume the stream output.
15621562 */
15631563async function logStream ( stream : Readable , logger : Logger ) : Promise < void > {
1564- for await ( const line of await splitStreamAtSeparators ( stream , lineEndings ) ) {
1564+ for await ( const line of splitStreamAtSeparators ( stream , lineEndings ) ) {
15651565 // Await the result of log here in order to ensure the logs are written in the correct order.
15661566 await logger . log ( line ) ;
15671567 }
0 commit comments