You've already forked joplin
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:
@ -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 };
|
||||
|
Reference in New Issue
Block a user