Fix a bunch of deepsource warnings (#11814)

This commit is contained in:
Patrice Vignola
2022-12-22 01:20:10 -08:00
committed by GitHub
parent 77a9dca9eb
commit 83f48350b2
73 changed files with 197 additions and 197 deletions

View File

@@ -130,7 +130,7 @@ func NextForkData(currEpoch types.Epoch) ([4]byte, types.Epoch, error) {
fSchedule := params.BeaconConfig().ForkVersionSchedule
sortedForkVersions := SortedForkVersions(fSchedule)
nextForkEpoch := types.Epoch(math.MaxUint64)
nextForkVersion := [4]byte{}
var nextForkVersion [4]byte
for _, forkVersion := range sortedForkVersions {
epoch, ok := fSchedule[forkVersion]
if !ok {