Skip to content

Commit 1561709

Browse files
committed
Remove unused variable
1 parent 84e964e commit 1561709

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/plugins/setup.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import {
88
requestAuthentication,
99
saveAuthToken,
1010
} from "../utils/authenticate.ts";
11+
import { execLocalStack } from "../utils/cli.ts";
1112
import { configureAwsProfiles } from "../utils/configure-aws.ts";
1213
import { runInstallProcess } from "../utils/install.ts";
1314
import { minDelay } from "../utils/promises.ts";
14-
import {execLocalStack} from "../utils/cli.ts";
1515

1616
export default createPlugin(
1717
({ context, outputChannel, setupStatusTracker, telemetry }) => {
@@ -168,10 +168,9 @@ export default createPlugin(
168168
/////////////////////////////////////////////////////////////////////
169169
progress.report({ message: "Checking LocalStack license..." });
170170

171-
const licenseActivateResponse = await execLocalStack(["license", "activate"], {
172-
outputChannel,
173-
});
174-
171+
await execLocalStack(["license", "activate"], {
172+
outputChannel,
173+
});
175174
const licenseIsValid = await minDelay(
176175
checkIsLicenseValid(outputChannel),
177176
);
@@ -182,7 +181,7 @@ export default createPlugin(
182181
} else {
183182
progress.report({
184183
message:
185-
"License is not valid or not assigned, please check License settings page...",
184+
"License is not valid or not assigned. Open License settings page to activate it.",
186185
});
187186
commands.executeCommand("localstack.openLicensePage");
188187
await checkLicenseUntilValid(outputChannel);
@@ -255,10 +254,9 @@ async function checkLicenseUntilValid(
255254
if (licenseIsValid) {
256255
break;
257256
}
258-
const licenseActivateResponse = await execLocalStack(["license", "activate"], {
259-
outputChannel,
260-
});
261-
257+
await execLocalStack(["license", "activate"], {
258+
outputChannel,
259+
});
262260
// Wait 2 seconds before trying again
263261
await new Promise((resolve) => setTimeout(resolve, 2000));
264262
}

0 commit comments

Comments
 (0)