Skip to content

Commit 88ad3ed

Browse files
shift presigned url in if block
1 parent 18ff663 commit 88ad3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tasks/finalizeBuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export default (ctx: Context): ListrTask<Context, ListrRendererFactory, ListrRen
2828
ctx.log.debug(`Closed browser`);
2929
await ctx.server?.close();
3030
ctx.log.debug(`Closed server`);
31-
let resp = await ctx.client.getS3PreSignedURL(ctx);
3231
if (ctx.isSnapshotCaptured) {
3332
ctx.log.debug(`Log file to be uploaded`)
33+
let resp = await ctx.client.getS3PreSignedURL(ctx);
3434
await ctx.client.uploadLogs(ctx, resp.data.url);
3535
}
3636
fs.unlinkSync(constants.LOG_FILE_PATH);

0 commit comments

Comments
 (0)