Skip to content

Commit a0e8454

Browse files
committed
lint
1 parent 5ef33ac commit a0e8454

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

src/utils/setup-status.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,11 @@ export async function createSetupStatusTracker(
4848
statuses = await checkSetupStatus(outputChannel);
4949

5050
const setupRequired = [
51-
Object.values(statuses),
52-
awsProfileTracker.status() === "ok",
51+
Object.values(statuses),
52+
awsProfileTracker.status() === "ok",
5353
localStackAuthenticationTracker.status() === "ok",
54-
].some(
55-
(check) => check === false,
56-
);
57-
54+
].some((check) => check === false);
55+
5856
const newStatus = setupRequired ? "setup_required" : "ok";
5957
if (status !== newStatus) {
6058
status = newStatus;
@@ -167,9 +165,7 @@ function createFileStatusTracker(
167165
updateStatus();
168166
})
169167
.on("error", (error) => {
170-
outputChannel.error(
171-
`${outputChannelPrefix} Error watching file`,
172-
);
168+
outputChannel.error(`${outputChannelPrefix} Error watching file`);
173169
outputChannel.error(error instanceof Error ? error : String(error));
174170
});
175171

@@ -204,7 +200,7 @@ function createAwsProfileStatusTracker(
204200
outputChannel,
205201
"[setup-status.aws-profile]",
206202
[AWS_CONFIG_FILENAME, AWS_CREDENTIALS_FILENAME],
207-
async () => (await checkIsProfileConfigured()) ? "ok" : "setup_required",
203+
async () => ((await checkIsProfileConfigured()) ? "ok" : "setup_required"),
208204
);
209205
}
210206

@@ -214,7 +210,7 @@ function createAwsProfileStatusTracker(
214210
* Emits status changes to registered listeners.
215211
*
216212
* @param outputChannel - Channel for logging output and trace messages.
217-
* @param outputChannel
213+
* @param outputChannel
218214
* @returns A {@link StatusTracker} instance for querying status, subscribing to changes, and disposing resources.
219215
*/
220216
function createLocalStackAuthenticationStatusTracker(
@@ -224,6 +220,6 @@ function createLocalStackAuthenticationStatusTracker(
224220
outputChannel,
225221
"[setup-status.localstack-authentication]",
226222
[LOCALSTACK_AUTH_FILENAME],
227-
async () => (await checkIsAuthenticated()) ? "ok" : "setup_required",
223+
async () => ((await checkIsAuthenticated()) ? "ok" : "setup_required"),
228224
);
229225
}

0 commit comments

Comments
 (0)