Skip to content

Commit 01fc505

Browse files
committed
More tweaks# Please enter the commit message for your changes. Lines starting
1 parent f607f16 commit 01fc505

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

packages/cursorless-engine/src/core/TutorialImpl.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,20 @@ export class TutorialImpl implements Tutorial {
3737
/**
3838
* Handle the argument of a "%%step:cloneStateInk.yml%%""
3939
*/
40-
private async processStep(arg: string, tutorialName: string) {
40+
private async processStep(yamlFilename: string, tutorialName: string) {
4141
const tutorialDir = path.join(this.tutorialRootDir, tutorialName);
4242
if (!fs.existsSync(tutorialDir)) {
4343
throw new Error(`Invalid tutorial name: ${tutorialName}`);
4444
}
4545

46-
const yamlFile = path.join(tutorialDir, arg);
47-
if (!fs.existsSync(yamlFile)) {
46+
const yamlPath = path.join(tutorialDir, yamlFilename);
47+
if (!fs.existsSync(yamlPath)) {
4848
throw new Error(
49-
`Can't file yaml file: ${yamlFile} in tutorial name: ${tutorialName}`,
49+
`Can't file yaml file: ${yamlPath} in tutorial name: ${tutorialName}`,
5050
);
5151
}
52-
const yamlFilename = arg;
5352

54-
const buffer = await readFile(yamlFile);
53+
const buffer = await readFile(yamlPath);
5554
const fixture = yaml.load(buffer.toString()) as TestCaseFixture;
5655

5756
// command to be said for moving to the next step

0 commit comments

Comments
 (0)