From e5040d9ce782bd7e89c9eb686ed27395ddf94aeb Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 28 Dec 2017 17:00:22 +0200 Subject: [PATCH] Don't test in Go 1.4 --- .travis.yml | 2 -- ring.go | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f49927e..c95b3e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,6 @@ services: - redis-server go: - - 1.4.x - 1.7.x - 1.8.x - 1.9.x @@ -13,7 +12,6 @@ go: matrix: allow_failures: - - go: 1.4.x - go: tip install: diff --git a/ring.go b/ring.go index 0697b3e..c11ef6b 100644 --- a/ring.go +++ b/ring.go @@ -298,6 +298,9 @@ func (c *Ring) cmdInfo(name string) *CommandInfo { if err != nil { return nil } + if c.cmdsInfo == nil { + return nil + } info := c.cmdsInfo[name] if info == nil { internal.Logf("info for cmd=%s not found", name)