pleasing the linters

Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
Jürgen Eckel 2024-11-26 15:12:43 +01:00
parent b2b41d759e
commit 5b11a40caf
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -94,7 +94,7 @@ func (config *Config) SetPlanetmintConfig(planetmintconfig interface{}) {
// GetNodeAddress retrieves the validator address through multiple methods
func (config *Config) GetNodeAddress() (address string) {
var err error = nil
var err error
// Check environment variable first <- this is used for test cases only
if address = os.Getenv(ValAddr); address != "" {
return
@ -111,8 +111,8 @@ func (config *Config) GetNodeAddress() (address string) {
if err != nil {
msg := "Cannot get node address. Please configure a Trust Wallet or define at least one key pair in the utilized keyring."
new_error := errors.New(msg + ": " + err.Error())
panic(new_error)
newError := errors.New(msg + ": " + err.Error())
panic(newError)
}
return address
}

View File

@ -11,8 +11,6 @@ require (
sigs.k8s.io/yaml v1.4.0
)
//replace github.com/planetmint/planetmint-go => ../
require (
cloud.google.com/go v0.111.0 // indirect
cloud.google.com/go/compute v1.23.3 // indirect
@ -194,3 +192,5 @@ require (
nhooyr.io/websocket v1.8.6 // indirect
pgregory.net/rapid v0.5.5 // indirect
)
replace github.com/planetmint/planetmint-go => ../