mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 13:10:43 +00:00
refactor(lint): reduce map spread patterns
This commit is contained in:
@@ -277,10 +277,11 @@ export function createExtensionTestShards(params = {}) {
|
||||
}
|
||||
|
||||
return shards
|
||||
.map((shard, index) => ({
|
||||
index,
|
||||
checkName: `checks-node-extensions-shard-${index + 1}`,
|
||||
...mergeTestPlans(shard.plans),
|
||||
}))
|
||||
.map((shard, index) =>
|
||||
Object.assign(
|
||||
{ index, checkName: `checks-node-extensions-shard-${index + 1}` },
|
||||
mergeTestPlans(shard.plans),
|
||||
),
|
||||
)
|
||||
.filter((shard) => shard.hasTests);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user