chore: run modernize

This commit is contained in:
Andrey Nering
2025-05-30 17:20:01 -03:00
parent b3f0c9e423
commit 04ec518a95
6 changed files with 11 additions and 10 deletions
+1 -1
View File
@@ -121,5 +121,5 @@ type HInt int
// Hash is a method that returns the hash of the integer.
func (h HInt) Hash() string {
return fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%d", h))))
return fmt.Sprintf("%x", sha256.Sum256(fmt.Appendf(nil, "%d", h)))
}