simplify slice expressions: s[:] => s (#1541)
Found using https://go-critic.github.io/overview#unslice-ref
This commit is contained in:
committed by
Bo-Yi Wu
parent
df1e17c2f0
commit
3f27866f80
@ -287,7 +287,7 @@ func TestRenderProtoBuf(t *testing.T) {
|
||||
err = (ProtoBuf{data}).Render(w)
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, string(protoData[:]), w.Body.String())
|
||||
assert.Equal(t, string(protoData), w.Body.String())
|
||||
assert.Equal(t, "application/x-protobuf", w.Header().Get("Content-Type"))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user