Merge PR #4608: More linters - Gosec, staticcheck

This commit is contained in:
Marko
2019-06-26 13:30:36 -07:00
committed by Jack Zampolin
parent c898dac6a9
commit b2f8c58ec4
12 changed files with 44 additions and 47 deletions
+1 -1
View File
@@ -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
}
+3
View File
@@ -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")