Skip to content

Commit

Permalink
Remove last traces of hook temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed Sep 19, 2022
1 parent 8cf22aa commit 78c5834
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/aws-cdk/lib/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ function pythonExecutable() {
return python;
}
const INFO_DOT_JSON = 'info.json';
const HOOK_DIR_PREFIX = 'tmp';

export class InitTemplate {
public static async fromName(templatesDir: string, name: string) {
Expand Down Expand Up @@ -278,7 +277,6 @@ async function listDirectory(dirPath: string) {
.filter(p => !p.startsWith('.'))
.filter(p => !(p === 'LICENSE'))
// if, for some reason, the temp folder for the hook doesn't get deleted we don't want to display it in this list
.filter(p => !p.startsWith(HOOK_DIR_PREFIX))
.filter(p => !(p === INFO_DOT_JSON))
.sort();
}
Expand Down

0 comments on commit 78c5834

Please sign in to comment.