diff options
author | Felix Lange <fjl@twurst.com> | 2016-04-15 17:06:57 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-04-15 17:17:27 +0800 |
commit | 6fdd0893c3ebf57e5a9ba2af569c595c859ab902 (patch) | |
tree | 2df67265a0350b68b2f10ba2f7dcd292fef59ad0 /rlp | |
parent | 68c755a238f1a204087c2843f01d48fc6039716f (diff) | |
download | go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.gz go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.bz2 go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.lz go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.xz go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.tar.zst go-tangerine-6fdd0893c3ebf57e5a9ba2af569c595c859ab902.zip |
all: fix go vet warnings
Diffstat (limited to 'rlp')
-rw-r--r-- | rlp/encode.go | 2 | ||||
-rw-r--r-- | rlp/raw_test.go | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/rlp/encode.go b/rlp/encode.go index 17cfc6b66..c20897efe 100644 --- a/rlp/encode.go +++ b/rlp/encode.go @@ -300,7 +300,6 @@ func (r *encReader) Read(b []byte) (n int, err error) { } r.piece = nil } - panic("not reached") } // next returns the next piece of data to be read. @@ -650,5 +649,4 @@ func intsize(i uint64) (size int) { return size } } - panic("not reached") } diff --git a/rlp/raw_test.go b/rlp/raw_test.go index 7d3ca13af..bac09d8d4 100644 --- a/rlp/raw_test.go +++ b/rlp/raw_test.go @@ -61,13 +61,13 @@ func TestCountValues(t *testing.T) { func TestSplitTypes(t *testing.T) { if _, _, err := SplitString(unhex("C100")); err != ErrExpectedString { - t.Error("SplitString returned %q, want %q", err, ErrExpectedString) + t.Errorf("SplitString returned %q, want %q", err, ErrExpectedString) } if _, _, err := SplitList(unhex("01")); err != ErrExpectedList { - t.Error("SplitString returned %q, want %q", err, ErrExpectedList) + t.Errorf("SplitString returned %q, want %q", err, ErrExpectedList) } if _, _, err := SplitList(unhex("81FF")); err != ErrExpectedList { - t.Error("SplitString returned %q, want %q", err, ErrExpectedList) + t.Errorf("SplitString returned %q, want %q", err, ErrExpectedList) } } |