mirror of
https://github.com/desktop/desktop
synced 2024-09-18 07:32:01 +00:00
Less tricks, moar clarity
This commit is contained in:
parent
6e4ab3511f
commit
ecae3c41d8
|
@ -113,7 +113,10 @@ export class AheadBehindStore {
|
|||
log.error('Failed calculating ahead/behind status', e)
|
||||
return null
|
||||
})
|
||||
.then(aheadBehind => this.cache.set(key, aheadBehind) && aheadBehind)
|
||||
.then(aheadBehind => {
|
||||
this.cache.set(key, aheadBehind)
|
||||
return aheadBehind
|
||||
})
|
||||
.finally(() => this.workers.delete(key))
|
||||
|
||||
this.workers.set(key, worker)
|
||||
|
|
Loading…
Reference in a new issue