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++ }