mirror of
https://github.com/splitsh/lite.git
synced 2024-06-01 05:12:28 +02:00
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:
commit
a3848465a0
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue