mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -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},
|
||||
} {
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue