mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-10 19:54:08 +02:00
parser/metadecoders: Remove superflous cast in test
This commit is contained in:
@@ -135,7 +135,7 @@ func TestUnmarshalToInterface(t *testing.T) {
|
|||||||
{[]byte(`a = "`), TOML, false},
|
{[]byte(`a = "`), TOML, false},
|
||||||
} {
|
} {
|
||||||
msg := qt.Commentf("%d: %s", i, test.format)
|
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 {
|
if b, ok := test.expect.(bool); ok && !b {
|
||||||
c.Assert(err, qt.Not(qt.IsNil), msg)
|
c.Assert(err, qt.Not(qt.IsNil), msg)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user