Update cache.go

clean small redundancy
This commit is contained in:
Inal Djafar 2016-06-06 19:27:45 +02:00
parent fabf72bf26
commit b65c9c44b4

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 {