fix: remove unnecessary zero value initialization (revive)

- Remove explicit = 0 from uint32 declaration as it's the default zero value
This commit is contained in:
Jeffrey Paul 2025-06-20 12:47:58 -07:00
parent bdcddadf90
commit be1f323a09
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@
"Bash(git add:*)",
"Bash(gofumpt:*)",
"Bash(git stash:*)",
"Bash(git commit:*)"
"Bash(git commit:*)",
"Bash(git push:*)"
],
"deny": []
}

View File

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