removed redundant var block

This commit is contained in:
Jimmy Zelinskie 2013-08-13 20:21:01 -04:00
parent 3df97fea4d
commit fe2d43a025

View file

@ -36,12 +36,7 @@ func (d *driver) New(conf *config.Storage) storage.Pool {
}
func makeDialFunc(conf *config.Storage) func() (redis.Conn, error) {
return func() (redis.Conn, error) {
var (
conn redis.Conn
err error
)
return func() (conn redis.Conn, err error) {
if conf.ConnTimeout != nil {
conn, err = redis.DialTimeout(
conf.Network,