aboutsummaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cache')
-rw-r--r--cache/bug_cache.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cache/bug_cache.go b/cache/bug_cache.go
index 53c1db64..1d161c76 100644
--- a/cache/bug_cache.go
+++ b/cache/bug_cache.go
@@ -234,8 +234,5 @@ func (c *BugCache) Commit() error {
}
func (c *BugCache) CommitAsNeeded() error {
- if c.bug.HasPendingOp() {
- return c.bug.Commit(c.repoCache.repo)
- }
- return nil
+ return c.bug.CommitAsNeeded(c.repoCache.repo)
}