1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-08 20:41:57 +00:00

Nothing special: Linting

This commit is contained in:
Makis Maropoulos
2016-06-03 05:11:50 +03:00
parent 679b707751
commit a337b4768d
20 changed files with 73 additions and 26 deletions

View File

@@ -13,6 +13,7 @@ func init() {
}
var (
// Provider is the redis provider
Provider = sessions.NewProvider("redis")
// redis is the default redis service, you can set configs via this object
redis = service.New()

View File

@@ -215,7 +215,7 @@ func dial(network string, addr string, pass string) (redis.Conn, error) {
return nil, err
}
if pass != "" {
if _, err := c.Do("AUTH", pass); err != nil {
if _, err = c.Do("AUTH", pass); err != nil {
c.Close()
return nil, err
}
@@ -255,7 +255,7 @@ func (r *Service) Connect() {
if err != nil {
return nil, err
}
if _, err := red.Do("SELECT", c.Database); err != nil {
if _, err = red.Do("SELECT", c.Database); err != nil {
red.Close()
return nil, err
}