Skip to content

Commit

Permalink
Fix build failures
Browse files Browse the repository at this point in the history
  • Loading branch information
laileni-aws committed Dec 12, 2024
1 parent 5428d8d commit 456fa23
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/core/src/codewhisperer/util/zipUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,8 @@ export class ZipUtil {
return zipFilePath
}

protected getZipEntryPath(projectName: string, relativePath: string, useCase?: FeatureUseCase) {
// Workspaces with multiple folders have the folder names as the root folder,
// but workspaces with only a single folder don't. So prepend the workspace folder name
// if it is not present.
if (useCase === FeatureUseCase.TEST_GENERATION) {
return path.join(projectName, relativePath)
}
return relativePath.split('/').shift() === projectName ? relativePath : path.join(projectName, relativePath)
protected getZipEntryPath(projectName: string, relativePath: string) {
return path.join(projectName, relativePath)
}

/**
Expand Down

0 comments on commit 456fa23

Please sign in to comment.