Skip to content

Commit 5001d2a

Browse files
committed
Fix nullish coalescing in Xcode detection and remove unused outputStyle variable
1 parent b91063e commit 5001d2a

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/cli/register-tool-commands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ function registerToolSubcommand(
221221
const jsonArg = argv.json as string | undefined;
222222
const profileOverride = argv.profile as string | undefined;
223223
const outputFormat = (argv.output as OutputFormat) ?? 'text';
224-
const outputStyle = (argv.style as OutputStyle) ?? 'normal';
225224
const socketPath = argv.socket as string;
226225
const logLevel = argv['log-level'] as string | undefined;
227226

src/daemon.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ async function main(): Promise<void> {
208208
return { success: result.success, output: result.output };
209209
});
210210
const xcodeAvailable = Boolean(
211-
xcodeVersion.version ??
212-
xcodeVersion.buildVersion ??
213-
xcodeVersion.developerDir ??
211+
xcodeVersion.version ||
212+
xcodeVersion.buildVersion ||
213+
xcodeVersion.developerDir ||
214214
xcodeVersion.xcodebuildPath,
215215
);
216216
const axeVersion = await getAxeVersionMetadata(async (command) => {

0 commit comments

Comments
 (0)