From 06f32abe079c0670ea6adf08f41754ef36063a72 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 14 May 2018 19:59:48 -0700 Subject: [PATCH] hdkeychain: address go vet warnings --- hdkeychain/bench_test.go | 2 +- hdkeychain/extendedkey_test.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hdkeychain/bench_test.go b/hdkeychain/bench_test.go index ef14920..dde59b1 100644 --- a/hdkeychain/bench_test.go +++ b/hdkeychain/bench_test.go @@ -79,6 +79,6 @@ func BenchmarkSerialize(b *testing.B) { b.StartTimer() for i := 0; i < b.N; i++ { - masterKey.String() + _ = masterKey.String() } } diff --git a/hdkeychain/extendedkey_test.go b/hdkeychain/extendedkey_test.go index d37c53c..c94d321 100644 --- a/hdkeychain/extendedkey_test.go +++ b/hdkeychain/extendedkey_test.go @@ -232,7 +232,8 @@ tests: } 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 }