Skip to content

Commit

Permalink
Merge pull request #865 from salesforcecli/sm/floating-promises-take-2
Browse files Browse the repository at this point in the history
fix: return the promise array
  • Loading branch information
shetzel authored Jan 3, 2024
2 parents 817785b + 1917202 commit a95cf96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commands/project/delete/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ export class Source extends SfCommand<DeleteSourceJson> {
this.components
.filter((comp) => comp.type.strategies?.adapter === 'bundle')
.filter(isSourceComponent)
.map((bundle: SourceComponent) => {
.flatMap((bundle: SourceComponent) =>
sourcepaths.map((sourcepath) =>
// walkContent returns absolute paths while sourcepath will usually be relative
bundle.walkContent().some((content) => content.endsWith(sourcepath))
? this.moveBundleToManifest(bundle, sourcepath)
: undefined
);
})
: []
)
)
);
}

Expand Down

0 comments on commit a95cf96

Please sign in to comment.