From 857c4cae5f4a54952fd4ecf78235dac33e9f0405 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 18 Jul 2016 01:21:47 +0200 Subject: Cleanup --- bencode/bencode_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bencode/bencode_test.go') diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go index 329baad..48c494d 100644 --- a/bencode/bencode_test.go +++ b/bencode/bencode_test.go @@ -104,7 +104,7 @@ func TestUnmarshalPartial(t *testing.T) { func TestUnmarshalBool(t *testing.T) { var b struct{ A bool } in := `d1:Ai1ee` - err := Unmarshal([]byte(in), &b) + _, err := Unmarshal([]byte(in), &b) if err != nil { t.Error(err) } @@ -116,7 +116,7 @@ func TestUnmarshalBool(t *testing.T) { func TestUnmarshalInt64(t *testing.T) { var b struct{ A int64 } in := `d1:Ai42ee` - err := Unmarshal([]byte(in), &b) + _, err := Unmarshal([]byte(in), &b) if err != nil { t.Error(err) } -- cgit v1.2.3