Skip to content

Commit 53afcf4

Browse files
committed
refactor: rename formatRetryError to buildRetryError for consistency
1 parent d114efc commit 53afcf4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

handwritten/storage/src/resumable-upload.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ export class Upload extends Writable {
13861386

13871387
if (retryDelay <= 0) {
13881388
this.destroy(
1389-
formatRetryError('Retry total time limit exceeded', resp),
1389+
buildRetryError('Retry total time limit exceeded', resp),
13901390
);
13911391
return;
13921392
}
@@ -1407,7 +1407,7 @@ export class Upload extends Writable {
14071407
}
14081408
this.numRetries++;
14091409
} else {
1410-
this.destroy(formatRetryError('Retry limit exceeded', resp));
1410+
this.destroy(buildRetryError('Retry limit exceeded', resp));
14111411
}
14121412
}
14131413

@@ -1452,7 +1452,7 @@ export class Upload extends Writable {
14521452
}
14531453
}
14541454

1455-
function formatRetryError(
1455+
function buildRetryError(
14561456
prefix: string,
14571457
resp: Pick<GaxiosResponse, 'data' | 'status'>,
14581458
): Error {

0 commit comments

Comments
 (0)