Skip to content

Commit

Permalink
[lint] Remove unused generics from MultiStepInput
Browse files Browse the repository at this point in the history
This commit removes unused generics from MultiStepInput.

ONE-vscode-DCO-1.0-Signed-off-by: Dayoung Lee <[email protected]>

ONE-vscode-DCO-1.0-Signed-off-by: Dayoung Lee <[email protected]>
  • Loading branch information
dayo09 committed Sep 15, 2022
1 parent 7670740 commit c1c436d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Utils/MultiStepInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ interface InputBoxParameters {

/* istanbul ignore next */
class MultiStepInput {
static async run<T>(start: InputStep) {
static async run(start: InputStep) {
const input = new MultiStepInput();
return input.stepThrough(start);
}

static async runSteps<T>(steps: InputStep[]) {
static async runSteps(steps: InputStep[]) {
if (steps.length === 0) {
throw new Error('not enough steps');
}
Expand All @@ -80,7 +80,7 @@ class MultiStepInput {
// this variable sets to public.
public steps: InputStep[] = [];

private async stepThrough<T>(start: InputStep) {
private async stepThrough(start: InputStep) {
let step: InputStep|void = start;
while (step) {
this.steps.push(step);
Expand Down

0 comments on commit c1c436d

Please sign in to comment.