From 19a9582a48f97651ecc632c908c2413d5e89625a Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 3 Jan 2019 19:42:07 -0600 Subject: [PATCH] Remove dangling `return` statement from spec function This function declares that it returns `None` and instead directly mutates the state. There is a dangling return statement that this commit deletes. --- specs/core/0_beacon-chain.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 7e2bbe83f..b714dea0f 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1759,8 +1759,6 @@ def update_validator_registry(state: BeaconState) -> None: validators_to_penalize = filter(to_penalize, range(len(validator_registry))) for index in validators_to_penalize: state.validator_balances[index] -= get_effective_balance(state, index) * min(total_penalties * 3, total_balance) // total_balance - - return validator_registry, latest_penalized_exit_balances, validator_registry_delta_chain_tip ``` Also perform the following updates: