hdkeychain: address go vet warnings

This commit is contained in:
Olaoluwa Osuntokun 2018-05-14 19:59:48 -07:00
parent a5016344ef
commit 06f32abe07
No known key found for this signature in database
GPG key ID: 964EA263DD637C21
2 changed files with 3 additions and 2 deletions

View file

@ -79,6 +79,6 @@ func BenchmarkSerialize(b *testing.B) {
b.StartTimer() b.StartTimer()
for i := 0; i < b.N; i++ { for i := 0; i < b.N; i++ {
masterKey.String() _ = masterKey.String()
} }
} }

View file

@ -232,7 +232,8 @@ tests:
} }
if extKey.Depth() != uint8(len(test.path)) { if extKey.Depth() != uint8(len(test.path)) {
t.Errorf("Depth of key %d should match fixture path") t.Errorf("Depth of key %d should match fixture path: %v",
extKey.Depth(), len(test.path))
continue continue
} }