@@ -153,7 +153,7 @@ export function splitReleaseSectionIntoChunks(
153153 const entries : CategorizedEntry [ ] = [ ] ;
154154 let category : string | undefined ;
155155 let currentEntry : string [ ] = [ ] ;
156- const endEntry = ( ) => {
156+ const endEntry = ( ) : void => {
157157 if ( category && currentEntry . length > 0 ) {
158158 entries . push ( { category, text : currentEntry . join ( '\n' ) . trimEnd ( ) } ) ;
159159 }
@@ -179,7 +179,7 @@ export function splitReleaseSectionIntoChunks(
179179 let chunkEntries = new Map < string , string [ ] > ( ) ;
180180 let chunkEntryCount = 0 ;
181181 let chunkPrNumbers : string [ ] = [ ] ;
182- const addChunk = ( ) => {
182+ const addChunk = ( ) : void => {
183183 if ( chunkEntryCount === 0 ) {
184184 return ;
185185 }
@@ -291,7 +291,7 @@ function getCategorizedBlocks(
291291 const blocks = new Map < string , string [ ] > ( ) ;
292292 let category : string | undefined ;
293293 let categoryEntries : string [ ] = [ ] ;
294- const addCategory = ( ) => {
294+ const addCategory = ( ) : void => {
295295 if ( ! category ) {
296296 return ;
297297 }
@@ -382,7 +382,7 @@ export function validateReplacement(
382382 const categoryNames = new Set < string > ( ) ;
383383 let category : string | undefined ;
384384 let categoryEntryCount = 0 ;
385- const endCategory = ( ) => {
385+ const endCategory = ( ) : void => {
386386 if ( category && categoryEntryCount === 0 ) {
387387 throw new Error ( `Category ${ category } must not be empty` ) ;
388388 }
@@ -525,7 +525,7 @@ export async function requestGhApiWithRetry(
525525 request : GhApiRequest = executeGhApi ,
526526 sleep ?: ( milliseconds : number ) => Promise < void > ,
527527) : Promise < string > {
528- return await retry ( async ( ) => request ( argumentsList ) , {
528+ return await retry ( async ( ) => await request ( argumentsList ) , {
529529 delayMilliseconds : GH_API_RETRY_DELAY_MS ,
530530 maxAttempts : GH_API_MAX_ATTEMPTS ,
531531 onRetry : ( { attempt, delayMilliseconds } ) => {
@@ -763,7 +763,7 @@ export async function requestCleanRoomRewrite({
763763 ] ,
764764 } ;
765765
766- return retry (
766+ return await retry (
767767 async ( ) => {
768768 const controller = new AbortController ( ) ;
769769 const timeout = setTimeout ( ( ) => controller . abort ( ) , timeoutMs ) ;
@@ -839,7 +839,7 @@ export async function requestValidatedRewrite(
839839 prNumbers : readonly string [ ] ,
840840 maxAttempts = MAX_VALIDATION_ATTEMPTS ,
841841) : Promise < string > {
842- return retry (
842+ return await retry (
843843 async ( ) => {
844844 const section = await requestCleanRoomRewrite ( options ) ;
845845 try {
0 commit comments