Fix: linting

This commit is contained in:
2019-01-27 07:25:26 +01:00
parent 7fc1675052
commit 6a091efea6
3 changed files with 11 additions and 11 deletions

View File

@@ -35,7 +35,7 @@ export function total (rows, field = 'Montant') {
return Math.round(sum)
}
export function tag_filter (rows, tags, invert=false) {
export function tagFilter (rows, tags, invert = false) {
// filter rows by tags
// invert inverts the selection
return rows.filter(row => {
@@ -55,7 +55,7 @@ export function tag_filter (rows, tags, invert=false) {
function objectMap (object, mapFn) {
// map a function on object value
return Object.keys(object).reduce(function(result, key) {
return Object.keys(object).reduce((result, key) => {
result[key] = mapFn(object[key])
return result
}, {})