From 3d71a3868ae0693e9354549e8993fd1bea8693f5 Mon Sep 17 00:00:00 2001 From: Andrea Franz Date: Tue, 13 Mar 2018 12:55:59 +0100 Subject: [PATCH] use `stats[vector.language]++` to prevent lint errors when using `+= 1` --- extkeys/mnemonic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extkeys/mnemonic_test.go b/extkeys/mnemonic_test.go index fa1a7d923..786c5c095 100644 --- a/extkeys/mnemonic_test.go +++ b/extkeys/mnemonic_test.go @@ -54,7 +54,7 @@ func TestMnemonicPhrase(t *testing.T) { t.Log("Test against pre-computed seed vectors:") stats := map[string]int{} for _, vector := range vectorsFile.vectors { - stats[vector.language] += 1 + stats[vector.language]++ mnemonic := NewMnemonic(vector.salt) seed := mnemonic.MnemonicSeed(vector.mnemonic, vector.password) if fmt.Sprintf("%x", seed) != vector.seed {