1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

First pass at linting lib dir

This commit is contained in:
Laurent Cozic
2019-07-29 15:43:53 +02:00
parent 64b7bc3d62
commit 86dc72b204
170 changed files with 4140 additions and 3119 deletions

View File

@ -3,7 +3,6 @@ const fs = require('fs-extra');
const { basicDelta } = require('lib/file-api');
class FileApiDriverMemory {
constructor() {
this.items_ = [];
this.deletedItems_ = [];
@ -139,7 +138,7 @@ class FileApiDriverMemory {
}
async delta(path, options = null) {
const getStatFn = async (path) => {
const getStatFn = async path => {
let output = this.items_.slice();
for (let i = 0; i < output.length; i++) {
const item = Object.assign({}, output[i]);
@ -156,7 +155,6 @@ class FileApiDriverMemory {
async clearRoot() {
this.items_ = [];
}
}
module.exports = { FileApiDriverMemory };
module.exports = { FileApiDriverMemory };