Skip to content

Commit

Permalink
fix go-sec
Browse files Browse the repository at this point in the history
  • Loading branch information
aalexand committed Aug 1, 2024
1 parent 849ba09 commit 6457511
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/apiserver/web/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ func sortURLParams(URL *url.URL) {

func GenerateKey(URL string) string {
hash := fnv.New64a()
hash.Write([]byte(URL))
_, err := hash.Write([]byte(URL))
if err != nil {
return ""
}

return strconv.FormatUint(hash.Sum64(), 36)
}
Expand Down

0 comments on commit 6457511

Please sign in to comment.