Skip to content

Commit

Permalink
chore: use SfProject.getInstance instead of this.project
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 23, 2023
1 parent 2fdb274 commit dc26d21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/project/retrieve/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class RetrieveMetadata extends SfCommand<RetrieveResultJson> {
let resolvedTargetDir: string | undefined;
if (flags['output-dir']) {
resolvedTargetDir = resolve(flags['output-dir']);
if (this.project?.getPackageNameFromPath(resolvedTargetDir)) {
if (SfProject.getInstance()?.getPackageNameFromPath(resolvedTargetDir)) {
throw messages.createError('retrieveTargetDirOverlapsPackage', [flags['output-dir']]);
}
}
Expand Down

0 comments on commit dc26d21

Please sign in to comment.