mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-28 22:01:43 -05:00
parser/metadecoders: Remove superflous cast in test
This commit is contained in:
parent
2a81a49499
commit
17055d1fa7
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue