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 bb90c8d commit 020d9b7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmd/skywire-cli/commands/reward/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,18 @@ Fetch uptimes: skywire-cli ut > ut.txt`,
archMap[disallowedarch] = struct{}{}
}
}
res, _ := script.File(utfile).Match(strings.TrimRight(wdate, "\n")).Column(1).Slice()
res, err := script.File(utfile).Match(strings.TrimRight(wdate, "\n")).Column(1).Slice()
if err != nil {
internal.PrintFatalError(cmdFlags, fmt.Errorf("Error reading uptime tracker data file. err=%v", err))

Check failure on line 270 in cmd/skywire-cli/commands/reward/root.go

View workflow job for this annotation

GitHub Actions / darwin

undefined: cmdFlags (typecheck)

Check failure on line 270 in cmd/skywire-cli/commands/reward/root.go

View workflow job for this annotation

GitHub Actions / darwin

undefined: cmdFlags) (typecheck)

Check failure on line 270 in cmd/skywire-cli/commands/reward/root.go

View workflow job for this annotation

GitHub Actions / linux

undefined: cmdFlags (typecheck)

Check failure on line 270 in cmd/skywire-cli/commands/reward/root.go

View workflow job for this annotation

GitHub Actions / linux

undefined: cmdFlags) (typecheck)

Check failure on line 270 in cmd/skywire-cli/commands/reward/root.go

View workflow job for this annotation

GitHub Actions / windows

undefined: cmdFlags
}
var nodesInfos []nodeinfo
for _, pk := range res {
nodeInfo := fmt.Sprintf("%s/%s/node-info.json", surveyPath, pk)
ip, _ := script.File(nodeInfo).JQ(`."ip.skycoin.com".ip_address`).Replace(" ", "").Replace(`"`, "").String()
ip, _ := script.File(nodeInfo).JQ(`."ip.skycoin.com".ip_address`).Replace(" ", "").Replace(`"`, "").String() //nolint
ip = strings.TrimRight(ip, "\n")
sky, _ := script.File(nodeInfo).JQ(".skycoin_address").Replace(" ", "").Replace(`"`, "").String()
sky, _ := script.File(nodeInfo).JQ(".skycoin_address").Replace(" ", "").Replace(`"`, "").String() //nolint
sky = strings.TrimRight(sky, "\n")
arch, _ := script.File(nodeInfo).JQ(".go_arch").Replace(" ", "").Replace(`"`, "").String()
arch, _ := script.File(nodeInfo).JQ(".go_arch").Replace(" ", "").Replace(`"`, "").String() //nolint
arch = strings.TrimRight(arch, "\n")
if _, disallowed := archMap[arch]; !disallowed && ip != "" && strings.Count(ip, ".") == 3 && sky != "" {
ni := nodeinfo{
Expand Down

0 comments on commit 020d9b7

Please sign in to comment.