Skip to content

Commit 1f3c472

Browse files
committed
fix lint issues
1 parent 64ba827 commit 1f3c472

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/utils/configure-aws.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,10 +487,9 @@ export async function checkIsProfileConfigured(): Promise<boolean> {
487487
),
488488
]);
489489

490-
const [configNeedsOverride, credentialsNeedsOverride] = await Promise.all([
491-
checkIfConfigNeedsOverride(configSection),
492-
checkIfCredentialsNeedsOverride(credentialsSection),
493-
]);
490+
const configNeedsOverride = await checkIfConfigNeedsOverride(configSection);
491+
const credentialsNeedsOverride =
492+
checkIfCredentialsNeedsOverride(credentialsSection);
494493

495494
if (configNeedsOverride || credentialsNeedsOverride) {
496495
return false;

src/utils/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async function fetchLatestCLIRelease(): Promise<ReleaseSchema> {
242242
if (!res.ok) {
243243
throw new Error(`Failed to fetch release: ${res.status} ${res.statusText}`);
244244
}
245-
const data = await res.json();
245+
const data: unknown = await res.json();
246246
const parsed = ReleaseSchema.safeParse(data);
247247
if (!parsed.success) {
248248
console.error(z.treeifyError(parsed.error));

src/utils/manage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function fetchLocalStackSessionId(): Promise<string> {
2424
try {
2525
const response = await fetch("http://127.0.0.1:4566/_localstack/info");
2626
if (response.ok) {
27-
const json = await response.json();
27+
const json: unknown = await response.json();
2828
if (typeof json === "object" && json !== null && "session_id" in json) {
2929
return typeof json.session_id === "string" ? json.session_id : "";
3030
}

0 commit comments

Comments
 (0)