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

@ -1,5 +1,7 @@
function promiseChain(chain, defaultValue = null) {
let output = new Promise((resolve, reject) => { resolve(defaultValue); });
let output = new Promise((resolve, reject) => {
resolve(defaultValue);
});
for (let i = 0; i < chain.length; i++) {
let f = chain[i];
output = output.then(f);
@ -34,4 +36,4 @@ function promiseWhile(callback) {
}, 100);
}
module.exports = { promiseChain, promiseWhile };
module.exports = { promiseChain, promiseWhile };