mirror of https://github.com/gin-gonic/gin.git
Fixed syntax errors
This commit is contained in:
parent
a66cbdc328
commit
9d78ea0de0
|
@ -35,7 +35,7 @@ func TestError(t *testing.T) {
|
||||||
jsonBytes, _ := json.Marshal(err)
|
jsonBytes, _ := json.Marshal(err)
|
||||||
assert.Equal(t, "{\"error\":\"test error\",\"meta\":\"some data\"}", string(jsonBytes))
|
assert.Equal(t, "{\"error\":\"test error\",\"meta\":\"some data\"}", string(jsonBytes))
|
||||||
|
|
||||||
err.SetMeta(H{ // nolint: errcheck
|
err.SetMeta(H{ // nolint: err check
|
||||||
"status": "200",
|
"status": "200",
|
||||||
"data": "some data",
|
"data": "some data",
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue