DEV: removes _.reduce from codebase (#6628)

This commit is contained in:
Joffrey JAFFEUX 2018-11-19 13:04:57 +01:00 committed by GitHub
parent 0a8227d19c
commit 86dafc1f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ const Report = Discourse.Model.extend({
@computed("data") @computed("data")
currentTotal(data) { currentTotal(data) {
return _.reduce(data, (cur, pair) => cur + pair.y, 0); return data.reduce((cur, pair) => cur + pair.y, 0);
}, },
@computed("data", "currentTotal") @computed("data", "currentTotal")