Skip to content

Commit

Permalink
fix: Remove redundant check for b.metrics before calling method
Browse files Browse the repository at this point in the history
  • Loading branch information
mattevans committed Jan 10, 2025
1 parent 71eda3c commit 3b71248
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/ethereum/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,7 @@ func (b *BeaconNode) handleDecoratedEvent(ctx context.Context, event events.Even
eventType = unknown
}

if b.metrics != nil {
b.metrics.AddDecoratedEvent(1, eventType, networkStr)
}
b.metrics.AddDecoratedEvent(1, eventType, networkStr)
b.summary.AddEventsExported(1)

// Send to all sinks.
Expand Down

0 comments on commit 3b71248

Please sign in to comment.