aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser/metadecoders
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-12-14 20:10:17 +0100
committerBjørn Erik Pedersen <[email protected]>2022-12-14 20:10:17 +0100
commit17055d1fa76ca23a408a2e6d4d67cc8023f4d2ed (patch)
tree2cb13559083dd6e81bfa6146da3a5d8c7c988007 /parser/metadecoders
parent2a81a4949921d1d04cefc45bd6e1ab583c388279 (diff)
downloadhugo-17055d1fa76ca23a408a2e6d4d67cc8023f4d2ed.tar.gz
hugo-17055d1fa76ca23a408a2e6d4d67cc8023f4d2ed.zip
parser/metadecoders: Remove superflous cast in test
Diffstat (limited to 'parser/metadecoders')
-rw-r--r--parser/metadecoders/decoder_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/metadecoders/decoder_test.go b/parser/metadecoders/decoder_test.go
index 5e917beff..590c9fa9e 100644
--- a/parser/metadecoders/decoder_test.go
+++ b/parser/metadecoders/decoder_test.go
@@ -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 {