Skip to content

Commit e0686b8

Browse files
committed
style: simplify empty array check
1 parent ed0649f commit e0686b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/providers/wallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ const genChainsFromRuntime = (runtime: IAgentRuntime): Record<string, Chain> =>
206206

207207
// If no chains are configured, default to mainnet and base
208208
const chainsToUse = configuredChains.length > 0 ? configuredChains : ['mainnet', 'base'];
209-
210-
if (configuredChains.length === 0) {
209+
210+
if (!configuredChains.length) {
211211
elizaLogger.warn('No EVM chains configured in settings, defaulting to mainnet and base');
212212
}
213213

0 commit comments

Comments
 (0)