From 728dcd6eb725095c8c17df9b09188858a333d549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Tue, 12 Dec 2023 11:34:19 -0300 Subject: [PATCH] Fix lint --- .../state_transition/operations.ex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/lambda_ethereum_consensus/state_transition/operations.ex b/lib/lambda_ethereum_consensus/state_transition/operations.ex index 83aeaf1b1..01ddec148 100644 --- a/lib/lambda_ethereum_consensus/state_transition/operations.ex +++ b/lib/lambda_ethereum_consensus/state_transition/operations.ex @@ -662,9 +662,10 @@ defmodule LambdaEthereumConsensus.StateTransition.Operations do slot = state.slot - data.slot with {:ok, participation_flag_indices} <- - Accessors.get_attestation_participation_flag_indices(state, data, slot), - attesting_indices = - Accessors.get_committee_attesting_indices(committee, aggregation_bits) do + Accessors.get_attestation_participation_flag_indices(state, data, slot) do + attesting_indices = + Accessors.get_committee_attesting_indices(committee, aggregation_bits) + is_current_epoch = data.target.epoch == Accessors.get_current_epoch(state) initial_epoch_participation = get_initial_epoch_participation(state, is_current_epoch) @@ -684,8 +685,6 @@ defmodule LambdaEthereumConsensus.StateTransition.Operations do |> Mutators.increase_balance(proposer_index, proposer_reward) |> update_state(is_current_epoch, updated_epoch_participation) |> then(&{:ok, &1}) - else - {:error, reason} -> {:error, reason} end end