Skip to content

Commit

Permalink
fix make check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0pcom committed Nov 6, 2023
1 parent 778fdf5 commit c0be87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/skywire-cli/commands/reward/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ Fetch uptimes: skywire-cli ut > ut.txt`,
inputStr.WriteString(fmt.Sprintf("%s\n", ni.IPAddr))
}
return inputStr.String()
}()).Freq().String()
}()).Freq().String() //nolint
var ipCounts []ipCount
lines := strings.Split(uniqueIP, "\n")
for _, line := range lines {
if line != "" {
fields := strings.Fields(line)
if len(fields) == 2 {
count, _ := strconv.Atoi(fields[0])
count, _ := strconv.Atoi(fields[0]) //nolint
ipCounts = append(ipCounts, ipCount{
IP: fields[1],
Count: count,
Expand Down

0 comments on commit c0be87c

Please sign in to comment.