Skip to content

Conversation

@Bilogweb3
Copy link

The loop variable b in Keccak256 and Keccak256Hash shadows the outer b slice used for the hash result. While Go's scoping rules make the current code work correctly, this shadowing is confusing and error-prone during refactoring.

Renamed the loop variable to chunk for clarity.

Found by running go vet -shadow / golangci-lint.

@fjl
Copy link
Contributor

fjl commented Nov 26, 2025

This change will not be applied because it is a low-impact cosmetic change. There is no difference in performance, and it doesn't meaningfully improve code quality.

@fjl fjl closed this Nov 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants