1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Add golangci-lint

This commit is contained in:
Vladimir Mihailenco
2019-07-25 13:53:00 +03:00
parent 9228e88887
commit f3ce3362a0
18 changed files with 284 additions and 274 deletions

View File

@ -24,7 +24,7 @@ type Script struct {
func NewScript(src string) *Script {
h := sha1.New()
io.WriteString(h, src)
_, _ = io.WriteString(h, src)
return &Script{
src: src,
hash: hex.EncodeToString(h.Sum(nil)),