remove extra return

This commit is contained in:
Danny Ryan 2019-01-30 07:59:07 -08:00
parent d47f98a33f
commit 7365af59a7
No known key found for this signature in database
GPG Key ID: 2765A792E42CE07A
2 changed files with 2 additions and 2 deletions

View File

@ -941,7 +941,7 @@ def get_beacon_proposer_index(state: BeaconState,
Returns the beacon proposer index for the ``slot``.
"""
first_committee, _ = get_crosslink_committees_at_slot(state, slot)[0]
return return first_committee[slot % len(first_committee)]
return first_committee[slot % len(first_committee)]
```

View File

@ -344,7 +344,7 @@ Either (2) or (3) occurs if (1) fails. The choice between (2) and (3) is determi
```python
get_next_epoch_crosslink_committees(state: BeaconState,
validator_index: ValidatorIndex) -> List[List[ValidatorIndex], ShardNumber]:
validator_index: ValidatorIndex) -> List[Tuple[ValidatorIndex], ShardNumber]:
current_epoch = get_current_epoch(state)
next_epoch = current_epoch + 1
next_epoch_start_slot = get_epoch_start_slot(next_epoch)