Skip to content

Commit

Permalink
test: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
snobbee committed Dec 11, 2023
1 parent 7d4bcbe commit 78d08fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/chain-initiator/add-genesis-account.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func addGenesisAccount(cmdPath, address, balance, homePath string) {

// Execute the command
if err := exec.Command(cmdPath, args...).Run(); err != nil {
log.Fatalf(Red+"Command execution failed: %v", err)
log.Fatalf(Red+"Command execution failed: %v", err) // nolint: goconst
}

// If execution reaches here, the command was successful
Expand Down
3 changes: 2 additions & 1 deletion scripts/chain-initiator/download-and-run-version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint: nakedret
package main

import (
Expand Down Expand Up @@ -40,7 +41,7 @@ func downloadAndRunVersion(binaryURL string, skipDownload bool) (path string, ve
}

// Download the binary
resp, err := http.Get(binaryURL)
resp, err := http.Get(binaryURL) // nolint: gosec
if err != nil {
return
}
Expand Down
1 change: 1 addition & 0 deletions scripts/chain-initiator/get-flags.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// nolint: nakedret
package main

import (
Expand Down

0 comments on commit 78d08fe

Please sign in to comment.