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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user