mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-03-30 15:08:28 +00:00
pleasing the linters
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
b2b41d759e
commit
5b11a40caf
@ -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
|
||||
}
|
||||
|
@ -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 => ../
|
||||
|
Loading…
x
Reference in New Issue
Block a user