From be1f323a09851ab32d40b8ce91115079dc50414c Mon Sep 17 00:00:00 2001 From: sneak Date: Fri, 20 Jun 2025 12:47:58 -0700 Subject: [PATCH] fix: remove unnecessary zero value initialization (revive) - Remove explicit = 0 from uint32 declaration as it's the default zero value --- .claude/settings.local.json | 3 ++- internal/vault/metadata.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index ed80ef0..fe8b209 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -16,7 +16,8 @@ "Bash(git add:*)", "Bash(gofumpt:*)", "Bash(git stash:*)", - "Bash(git commit:*)" + "Bash(git commit:*)", + "Bash(git push:*)" ], "deny": [] } diff --git a/internal/vault/metadata.go b/internal/vault/metadata.go index 442ab4b..525a133 100644 --- a/internal/vault/metadata.go +++ b/internal/vault/metadata.go @@ -85,7 +85,7 @@ func GetNextDerivationIndex(fs afero.Fs, stateDir string, mnemonic string) (uint } // Find the first available index - var index uint32 = 0 + var index uint32 for usedIndices[index] { index++ }