diff options
Diffstat (limited to 'tests/init.go')
-rw-r--r-- | tests/init.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/init.go b/tests/init.go index 361be5f62..7b0924bc3 100644 --- a/tests/init.go +++ b/tests/init.go @@ -87,11 +87,7 @@ func readJsonHttp(uri string, value interface{}) error { } defer resp.Body.Close() - err = readJson(resp.Body, value) - if err != nil { - return err - } - return nil + return readJson(resp.Body, value) } func readJsonFile(fn string, value interface{}) error { |