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
+5 -2
View File
@@ -97,7 +97,8 @@ func waitForHeight(height int64, url string) {
var res *http.Response
var err error
for {
res, err = http.Get(url)
// Since this is in a testing file we are accepting nolint to be passed
res, err = http.Get(url) //nolint:gosec
if err != nil {
panic(err)
}
@@ -150,7 +151,7 @@ func WaitForStart(url string) {
time.Sleep(time.Millisecond * 100)
var res *http.Response
res, err = http.Get(url)
res, err = http.Get(url) //nolint:gosec Error is arising in testing files, accepting nolint
if err != nil || res == nil {
continue
}
@@ -214,3 +215,5 @@ var cdc = codec.New()
func init() {
ctypes.RegisterAmino(cdc)
}
//DONTCOVER