parser/metadecoders: Remove superflous cast in test

This commit is contained in:
Bjørn Erik Pedersen 2022-12-14 20:10:17 +01:00
parent 2a81a49499
commit 17055d1fa7
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -135,7 +135,7 @@ func TestUnmarshalToInterface(t *testing.T) {
{[]byte(`a = "`), TOML, false},
} {
msg := qt.Commentf("%d: %s", i, test.format)
m, err := d.Unmarshal([]byte(test.data), test.format)
m, err := d.Unmarshal(test.data, test.format)
if b, ok := test.expect.(bool); ok && !b {
c.Assert(err, qt.Not(qt.IsNil), msg)
} else {