Skip to content

Commit 905b3f1

Browse files
committed
lint
1 parent 16cf2d5 commit 905b3f1

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

packages/indexer-common/src/indexer-management/allocations.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,11 +1034,11 @@ export class AllocationManager {
10341034
const { deploymentRulesMap, globalRule } = preprocessRules(indexingRules)
10351035

10361036
return isDeploymentWorthAllocatingTowards(
1037-
logger,
1038-
subgraphDeployment,
1037+
logger,
1038+
subgraphDeployment,
10391039
indexingRules,
10401040
deploymentRulesMap,
1041-
globalRule
1041+
globalRule,
10421042
).toAllocate
10431043
}
10441044

packages/indexer-common/src/subgraphs.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export function preprocessRules(rules: IndexingRuleAttributes[]): PreprocessedRu
201201
const globalRule = rules.find((rule) => rule.identifier === INDEXING_RULE_GLOBAL)
202202
const deploymentRulesMap = new Map<string, IndexingRuleAttributes>()
203203

204-
rules.forEach(rule => {
204+
rules.forEach((rule) => {
205205
if (rule.identifierType === SubgraphIdentifierType.DEPLOYMENT) {
206206
deploymentRulesMap.set(rule.identifier, rule)
207207
}
@@ -218,7 +218,13 @@ export function evaluateDeployments(
218218
const { deploymentRulesMap, globalRule } = preprocessRules(rules)
219219

220220
return networkDeployments.map((deployment) =>
221-
isDeploymentWorthAllocatingTowards(logger, deployment, rules, deploymentRulesMap, globalRule),
221+
isDeploymentWorthAllocatingTowards(
222+
logger,
223+
deployment,
224+
rules,
225+
deploymentRulesMap,
226+
globalRule,
227+
),
222228
)
223229
}
224230

0 commit comments

Comments
 (0)