From 6bf6d70fc36553ed5c57ff27c7aa337321b6daa8 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Fri, 8 Mar 2019 16:59:38 +0530 Subject: [PATCH] itemservice: eslint fix --- src/itemService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itemService.js b/src/itemService.js index a537db7..6faa497 100644 --- a/src/itemService.js +++ b/src/itemService.js @@ -258,7 +258,7 @@ export const itemService = { async getCountOfFileModeItems() { const items = await this.getAllItems(); return items.reduce((count, item) => { - if (item.files) return ++count; + if (item.files) return count + 1; return count; }, 0); }