Skip to content

Commit 3736283

Browse files
authored
fix: use nullish coalescing operator in validate.ts (#429)
Fix ESLint prefer-nullish-coalescing errors.
1 parent 3382eda commit 3736283

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli/commands/add/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export async function validateAddGatewayTargetOptions(options: AddGatewayTargetO
228228

229229
// Validate outbound auth configuration
230230
if (options.outboundAuthType && options.outboundAuthType !== 'NONE') {
231-
const hasInlineOAuth = !!(options.oauthClientId || options.oauthClientSecret || options.oauthDiscoveryUrl);
231+
const hasInlineOAuth = !!(options.oauthClientId ?? options.oauthClientSecret ?? options.oauthDiscoveryUrl);
232232

233233
// Reject inline OAuth fields with API_KEY auth type
234234
if (options.outboundAuthType === 'API_KEY' && hasInlineOAuth) {

0 commit comments

Comments
 (0)