Merge PR #4608: More linters - Gosec, staticcheck
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
// Get a free address for a test tendermint server
|
||||
// protocol is either tcp, http, etc
|
||||
func FreeTCPAddr() (addr, port string, err error) {
|
||||
l, err := net.Listen("tcp", "0.0.0.0:0")
|
||||
l, err := net.Listen("tcp", "localhost:0")
|
||||
if err != nil {
|
||||
return "", "", err
|
||||
}
|
||||
|
||||
@@ -99,6 +99,9 @@ func interceptLoadConfig() (conf *cfg.Config, err error) {
|
||||
|
||||
if conf == nil {
|
||||
conf, err = tcmd.ParseConfig() // NOTE: ParseConfig() creates dir/files as necessary.
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
appConfigFilePath := filepath.Join(rootDir, "config/app.toml")
|
||||
|
||||
Reference in New Issue
Block a user