Skip to content

Commit 061f347

Browse files
committed
Don't obfuscate assignment when we choose language
Instead of assigning this property in a method, let's make the method return a value and assign it more visibly.
1 parent 95ed076 commit 061f347

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extensions/ql-vscode/src/skeleton-query-wizard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class SkeletonQueryWizard {
4545

4646
public async execute() {
4747
// show quick pick to choose language
48-
await this.chooseLanguage();
48+
this.language = await this.chooseLanguage();
4949
if (!this.language) {
5050
return;
5151
}
@@ -112,7 +112,7 @@ export class SkeletonQueryWizard {
112112
maxStep: 1,
113113
});
114114

115-
this.language = await askForLanguage(this.cliServer, false);
115+
return await askForLanguage(this.cliServer, false);
116116
}
117117

118118
private async createQlPack() {

0 commit comments

Comments
 (0)