Skip to content

Commit 456fa23

Browse files
committed
Fix build failures
1 parent 5428d8d commit 456fa23

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

packages/core/src/codewhisperer/util/zipUtil.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,8 @@ export class ZipUtil {
141141
return zipFilePath
142142
}
143143

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

154148
/**

0 commit comments

Comments
 (0)