Skip to content

Commit

Permalink
fix: satisfy linter
Browse files Browse the repository at this point in the history
it's bad for golang, but in order to satisfy linter, we have to write this piece of sheet
  • Loading branch information
Candinya committed Jun 19, 2024
1 parent 642691b commit 9a0fd78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/indexer/l2/indexer_staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ func (s *server) closeEpochExec(ctx context.Context, epoch *big.Int) error {
)

// Calculate reward for nodes
var rewardNodesAddress []common.Address
var rewardNodesAmount []*big.Int
rewardNodesAddress := []common.Address{}
rewardNodesAmount := []*big.Int{}

for _, node := range allNodes {
// Calculate reward per node
Expand Down

0 comments on commit 9a0fd78

Please sign in to comment.