Skip to content

Commit c3dfff7

Browse files
committed
lint
1 parent 39e018d commit c3dfff7

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
@@ -1042,11 +1042,11 @@ export class AllocationManager {
10421042
const { deploymentRulesMap, globalRule } = preprocessRules(indexingRules)
10431043

10441044
return isDeploymentWorthAllocatingTowards(
1045-
logger,
1046-
subgraphDeployment,
1045+
logger,
1046+
subgraphDeployment,
10471047
indexingRules,
10481048
deploymentRulesMap,
1049-
globalRule
1049+
globalRule,
10501050
).toAllocate
10511051
}
10521052

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)