style: satisfy preflight quality gate

This commit is contained in:
Jinwoo-H
2026-08-12 22:46:53 -04:00
parent c9591fa27f
commit d2d20bc8b5
+1 -1
View File
@@ -45,7 +45,7 @@ export function runNpmServerPreflight(argv: string[]): void {
function readExpectedVersion(argv: string[]): string {
const flagIndex = argv.indexOf('--expected-version')
const value = flagIndex >= 0 ? argv[flagIndex + 1] : undefined
const value = flagIndex !== -1 ? argv[flagIndex + 1] : undefined
if (!value || !isExactNpmVersion(value)) {
throw new Error('npm_preflight_expected_version_required')
}