Skip to content

Commit

Permalink
params/types/ctypes: (lint) gosimple, omit extra discarded val from r…
Browse files Browse the repository at this point in the history
…ange loop

Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Dec 22, 2019
1 parent 9871cb2 commit aec0e07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions params/types/ctypes/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (b Uint64BigMapEncodesHex) SetValueTotalForHeight(n *uint64, val *big.Int)

sumR := big.NewInt(0)
sl := []uint64{}
for k, _ := range sums {
for k := range sums {
sl = append(sl, k)
}
sort.Slice(sl, func(i, j int) bool {
Expand All @@ -200,7 +200,7 @@ func (b Uint64BigMapEncodesHex) SumValues(n *uint64) uint64 {
var sumB = big.NewInt(0)
var sl = []uint64{}

for k, _ := range b {
for k := range b {
sl = append(sl, k)
}
sort.Slice(sl, func(i, j int) bool {
Expand All @@ -226,7 +226,7 @@ func MapMeetsSpecification(difficulties Uint64BigMapEncodesHex, rewards Uint64Bi
var sl = []uint64{}

// difficulty
for k, _ := range difficulties {
for k := range difficulties {
sl = append(sl, k)
}
sort.Slice(sl, func(i, j int) bool {
Expand Down

0 comments on commit aec0e07

Please sign in to comment.