1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-18 20:41:13 +02:00

itemservice: eslint fix

This commit is contained in:
Kushagra Gour
2019-03-08 16:59:38 +05:30
parent 02b9e56562
commit 6bf6d70fc3

View File

@@ -258,7 +258,7 @@ export const itemService = {
async getCountOfFileModeItems() { async getCountOfFileModeItems() {
const items = await this.getAllItems(); const items = await this.getAllItems();
return items.reduce((count, item) => { return items.reduce((count, item) => {
if (item.files) return ++count; if (item.files) return count + 1;
return count; return count;
}, 0); }, 0);
} }