Enable vet

This commit is contained in:
goltermann
2016-04-15 12:18:27 -07:00
parent f3f6ffaa28
commit 3fa6c6f6d9
16 changed files with 33 additions and 35 deletions

View File

@@ -68,7 +68,7 @@ func (c *VersionCache) Get(key string) (kubecontainer.Version, kubecontainer.Ver
defer c.lock.RUnlock()
value, ok := c.cache[key]
if !ok {
return nil, nil, fmt.Errorf("Failed to get version info from cache by key: ", key)
return nil, nil, fmt.Errorf("Failed to get version info from cache by key: %v", key)
}
return value.apiVersion, value.version, nil
}