Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint: enable govet shadow linter and resolve linter warnings #5261

Merged
merged 10 commits into from
Jun 1, 2023
Prev Previous commit
Next Next commit
fix call to maybefail
  • Loading branch information
cce committed May 26, 2023
commit 2f25253eb2d7dccb4305481b2e7ea097ca403b21
4 changes: 2 additions & 2 deletions cmd/loadgenerator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ func main() {
if algodDir != "" {
path := filepath.Join(algodDir, "algod.net")
net, osErr := os.ReadFile(path)
maybefail(err, "%s: %v\n", path, osErr)
maybefail(osErr, "%s: %v\n", path, osErr)
path = filepath.Join(algodDir, "algod.token")
token, osErr := os.ReadFile(path)
maybefail(err, "%s: %v\n", path, osErr)
maybefail(osErr, "%s: %v\n", path, osErr)
cfg.ClientURL, err = url.Parse(fmt.Sprintf("http://%s", string(strings.TrimSpace(string(net)))))
maybefail(err, "bad net url %v\n", err)
cfg.APIToken = string(token)
Expand Down