diff --git a/error.go b/error.go index 9ed6156e..521594bb 100644 --- a/error.go +++ b/error.go @@ -134,7 +134,7 @@ func isMovedSameConnAddr(err error, addr string) bool { if !strings.HasPrefix(redisError, "MOVED ") { return false } - return strings.HasSuffix(redisError, " " + addr) + return strings.HasSuffix(redisError, " "+addr) } //------------------------------------------------------------------------------