mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 05:56:45 +01:00
all: fix go vet warnings
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user