Skip to content

Commit

Permalink
Use . operator
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplion authored Jun 7, 2022
1 parent 201e023 commit 1e91b9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/lodestar/src/chain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ export class BeaconChain implements IBeaconChain {

handleChainEvents.bind(this)(this.abortController.signal);

if (metrics) {
metrics.opPool.aggregatedAttestationPoolSize.addCollect(() => this.onScrapeMetrics());
}
metrics?.opPool.aggregatedAttestationPoolSize.addCollect(() => this.onScrapeMetrics());
}

close(): void {
Expand Down

0 comments on commit 1e91b9a

Please sign in to comment.