Removed warnings from go staticcheck

This commit is contained in:
gezimbll
2023-11-03 12:20:48 -04:00
committed by Dan Christian Bogos
parent 529430bd4d
commit c2dacc42c1
97 changed files with 334 additions and 761 deletions

View File

@@ -56,7 +56,6 @@ func TestListenAndServe(t *testing.T) {
cfgRld := make(chan struct{}, 1)
cfgRld <- struct{}{}
go func() {
time.Sleep(10)
stopChan <- struct{}{}
}()
var err error

View File

@@ -211,6 +211,9 @@ func TestHTTPJsonMapPrepareMap(t *testing.T) {
t.Error(err)
}
body, err := json.Marshal(valMp)
if err != nil {
t.Error(err)
}
exp := &HTTPPosterRequest{
Header: httpEE.hdr,
Body: body,