1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-25 08:21:55 +03:00

Merge pull request #371 from go-redis/fix/try-go14-fix

Try to fix Go 1.4.
This commit is contained in:
Vladimir Mihailenco
2016-09-14 14:04:51 +03:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ services:
- redis-server
go:
- 1.4
- 1.6
- 1.7
- tip

View File

@ -58,7 +58,7 @@ func IsMoved(err error) (moved bool, ask bool, addr string) {
return
}
ind := strings.LastIndexByte(s, ' ')
ind := strings.LastIndex(s, " ")
if ind == -1 {
return false, false, ""
}