Skip to content

Commit 39a9a64

Browse files
committed
Lint issues
1 parent b232e2e commit 39a9a64

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export class TestController {
286286
}) {
287287
const { error, tabID } = data
288288

289-
// If user reached montly limit for builderId
289+
// If user reached monthly limit for builderId
290290
if (error.code === 'CreateTestJobError') {
291291
if (error.message.includes(CodeWhispererConstants.utgLimitReached)) {
292292
getLogger().error('Monthly quota reached for QSDA actions.')
@@ -1309,8 +1309,9 @@ export class TestController {
13091309
'Deleting output.log and temp result directory. testGenerationLogsDir: %s',
13101310
testGenerationLogsDir
13111311
)
1312-
if (await fs.existsFile(path.join(testGenerationLogsDir, 'output.log'))) {
1313-
await fs.delete(path.join(testGenerationLogsDir, 'output.log'))
1312+
const outputLogPath = path.join(testGenerationLogsDir, 'output.log')
1313+
if (await fs.existsFile(outputLogPath)) {
1314+
await fs.delete(outputLogPath)
13141315
}
13151316
if (
13161317
await fs

packages/core/src/codewhisperer/commands/startTestGeneration.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ export async function startTestGenerationProcess(
7575
try {
7676
artifactMap = await getPresignedUrlAndUploadTestGen(zipMetadata)
7777
} finally {
78-
if (await fs.existsFile(path.join(testGenerationLogsDir, 'output.log'))) {
79-
await fs.delete(path.join(testGenerationLogsDir, 'output.log'))
78+
const outputLogPath = path.join(testGenerationLogsDir, 'output.log')
79+
if (await fs.existsFile(outputLogPath)) {
80+
await fs.delete(outputLogPath)
8081
}
8182
await zipUtil.removeTmpFiles(zipMetadata)
8283
session.artifactsUploadDuration = performance.now() - uploadStartTime

0 commit comments

Comments
 (0)