Skip to content

Commit 5af9a03

Browse files
fix grammar issue when arch option is incorrect (#174)
1 parent f0fb8bc commit 5af9a03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function getInternalEnvVariable(envVar: keyof typeof internalOptions): st
4343
return process.env['mysqlmsn_internal_DO_NOT_USE_' + envVar] || internalOptions[envVar]
4444
}
4545

46-
const allowedArches = ['x64', 'arm64', undefined]
46+
const allowedArches = ['x64', 'arm64']
4747
export const OPTION_TYPE_CHECKS: OptionTypeChecks = {
4848
version: {
4949
check: (opt: any) => opt === undefined || typeof opt === 'string' && validSemver(coerceSemver(opt)) !== null,
@@ -111,7 +111,7 @@ export const OPTION_TYPE_CHECKS: OptionTypeChecks = {
111111
definedType: 'string'
112112
},
113113
arch: {
114-
check: (opt: any) => allowedArches.includes(opt),
114+
check: (opt: any) => opt === undefined || allowedArches.includes(opt),
115115
errorMessage: `Option arch must be either of the following: ${allowedArches.join(', ')}`,
116116
definedType: 'string'
117117
}

0 commit comments

Comments
 (0)