minor #2 Update cache.go (inalgnu)

This PR was merged into the master branch.

Discussion
----------

Update cache.go

clean small redundancy

Commits
-------

b65c9c4 Update cache.go
This commit is contained in:
Fabien Potencier 2016-06-07 07:14:40 +02:00
commit a3848465a0

View file

@ -45,12 +45,7 @@ func newCache(branch string, config *Config) (*cache, error) {
}
func (c *cache) close() error {
err := c.db.Close()
if err != nil {
return err
}
return nil
return c.db.Close()
}
func key(config *Config) []byte {