QuackatronHQ / Gigarepo

Unused parameter in function RVV-B0012
Bug risk
Minor
3 days ago2 years old
parameter 'clear' seems to be unused, consider removing or renaming it as _
16
17var xxhash = xxHash32.New(randomSeed()) // hash.Hash32
18
19func fastHash(clear bool, buf []byte) uint32 {20	xxhash.Reset()
21	xxhash.Write(buf)
22	return xxhash.Sum32()
parameter 'r' seems to be unused, consider removing or renaming it as _
 40	Files []string
 41}
 42
 43func (c routerCtx) GetImages(w http.ResponseWriter, r *http.Request) { 44	w.Header().Set("Content-Type", "application/json")
 45	dir, err := embedFS.ReadDir("images")
 46	if err != nil {