Skip to content

Commit 8e59150

Browse files
laileni-awsctlai95
andauthored
Update packages/core/src/amazonqTest/chat/controller/controller.ts
Co-authored-by: Tai Lai <[email protected]>
1 parent beb8a2e commit 8e59150

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/core/src/amazonqTest/chat/controller/controller.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,8 +1313,9 @@ export class TestController {
13131313
'Deleting output.log and temp result directory. testGenerationLogsDir: %s',
13141314
testGenerationLogsDir
13151315
)
1316-
if (await fs.existsFile(path.join(testGenerationLogsDir, 'output.log'))) {
1317-
await fs.delete(path.join(testGenerationLogsDir, 'output.log'))
1316+
const outputLogPath = path.join(testGenerationLogsDir, 'output.log')
1317+
if (await fs.existsFile(outputLogPath)) {
1318+
await fs.delete(outputLogPath)
13181319
}
13191320
if (
13201321
await fs

0 commit comments

Comments
 (0)