From 5580d881f84c60c5dba9107efe8e0df86083fdb2 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 7 Apr 2023 21:50:13 +0000 Subject: [PATCH] refactor: Unused parameter should be replaced by underscore Unused parameters in functions or methods should be replaced with `_` (underscore) or removed. --- go/hash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/hash.go b/go/hash.go index 32970a8c..e3b7a637 100644 --- a/go/hash.go +++ b/go/hash.go @@ -16,7 +16,7 @@ func randomSeed() uint32 { var xxhash = xxHash32.New(randomSeed()) // hash.Hash32 -func fastHash(clear bool, buf []byte) uint32 { +func fastHash(_ bool, buf []byte) uint32 { xxhash.Reset() xxhash.Write(buf) return xxhash.Sum32()