Skip to content

Commit

Permalink
minor wording change
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhcsun authored Jan 4, 2024
1 parent 868ce74 commit aa4fc25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/core/lib/asset-staging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ export class AssetStaging extends Construct {
// directory after it has been moved to the staging directory if the hash is known before bundling. This way if bundling
// is skipped because the bundling directory already exists we can still determine
// the correct packaging type.
// If the hash is calculated after bundling we remove the temp dir now.
// If the hash is calculated after bundling we remove the temporary directory now.
if (bundledAsset.packaging === FileAssetPackaging.FILE) {
if (this.hashType === AssetHashType.OUTPUT || this.hashType === AssetHashType.BUNDLE) {
fs.removeSync(path.dirname(bundledAsset.path));
Expand Down

0 comments on commit aa4fc25

Please sign in to comment.