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.
This commit is contained in:
@@ -45,7 +45,7 @@ export class SkeletonQueryWizard {
|
|||||||
|
|
||||||
public async execute() {
|
public async execute() {
|
||||||
// show quick pick to choose language
|
// show quick pick to choose language
|
||||||
await this.chooseLanguage();
|
this.language = await this.chooseLanguage();
|
||||||
if (!this.language) {
|
if (!this.language) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -112,7 +112,7 @@ export class SkeletonQueryWizard {
|
|||||||
maxStep: 1,
|
maxStep: 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.language = await askForLanguage(this.cliServer, false);
|
return await askForLanguage(this.cliServer, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async createQlPack() {
|
private async createQlPack() {
|
||||||
|
|||||||
Reference in New Issue
Block a user