From dc26d21728e50c4d17f8f2ec001b96580dc59d6f Mon Sep 17 00:00:00 2001 From: Willie Ruemmele Date: Tue, 23 May 2023 16:18:07 -0600 Subject: [PATCH] chore: use SfProject.getInstance instead of this.project --- src/commands/project/retrieve/start.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/project/retrieve/start.ts b/src/commands/project/retrieve/start.ts index 65e78e52..81107578 100644 --- a/src/commands/project/retrieve/start.ts +++ b/src/commands/project/retrieve/start.ts @@ -148,7 +148,7 @@ export default class RetrieveMetadata extends SfCommand { 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']]); } }