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

Applied prettier to code base

This commit is contained in:
Laurent Cozic
2018-03-09 17:49:35 +00:00
parent e868102c98
commit c4f19465a6
203 changed files with 13395 additions and 7927 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 };