Skip to content

Commit 6c91b7c

Browse files
committed
fix: use nullish coalescing operator in validate.ts
Fix ESLint prefer-nullish-coalescing errors from merged #416.
1 parent a8682f4 commit 6c91b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)