Skip to content

Commit 6f897a7

Browse files
chore: fix negating file path
1 parent 6538237 commit 6f897a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/commands/agent/validate/authoring-bundle.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ export default class AgentValidateAuthoringBundle extends SfCommand<AgentValidat
6868
// If we don't have an api name yet, prompt for it
6969
const apiName =
7070
flags['api-name'] ?? (await promptForFlag(AgentValidateAuthoringBundle.FLAGGABLE_PROMPTS['api-name']));
71-
// todo: this eslint warning can be removed once published
72-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
7371
const authoringBundleDir = findAuthoringBundle(this.project!.getPath(), apiName);
7472
if (!authoringBundleDir) {
7573
throw new SfError(messages.getMessage('error.agentNotFound', [apiName]), 'AgentNotFoundError', [
@@ -103,7 +101,7 @@ export default class AgentValidateAuthoringBundle extends SfCommand<AgentValidat
103101
const conn = targetOrg.getConnection(flags['api-version']);
104102
// Call Agent.compileAfScript() API
105103
await sleep(Duration.seconds(2));
106-
await Agent.compileAfScript(conn, readFileSync(join(authoringBundleDir, `${!apiName}.agent`), 'utf8'));
104+
await Agent.compileAfScript(conn, readFileSync(join(authoringBundleDir, `${apiName}.agent`), 'utf8'));
107105
mso.updateData({ status: 'COMPLETED' });
108106
mso.stop('completed');
109107
return {

0 commit comments

Comments
 (0)