mirror of
https://github.com/desktop/desktop
synced 2024-10-31 05:19:03 +00:00
Not directly async
This commit is contained in:
parent
51b86ee422
commit
40c9cf3211
1 changed files with 2 additions and 2 deletions
|
@ -1500,8 +1500,8 @@ export class StatsStore implements IStatsStore {
|
|||
public recordOpenSubmoduleFromDiffCount = () =>
|
||||
this.increment('openSubmoduleFromDiffCount')
|
||||
|
||||
private async increment(k: keyof NumericMeasures, n = 1) {
|
||||
this.updateDailyMeasures(
|
||||
private increment(k: keyof NumericMeasures, n = 1) {
|
||||
return this.updateDailyMeasures(
|
||||
m => ({ [k]: m[k] + n } as Pick<IDailyMeasures, keyof NumericMeasures>)
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue