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

Revert "Applied prettier to code base"

This reverts commit c4f19465a6.
This commit is contained in:
Laurent Cozic
2018-03-09 20:59:12 +00:00
parent 5e8b09f5af
commit 55c5ddedf4
203 changed files with 7883 additions and 13355 deletions

View File

@ -1,7 +1,5 @@
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);
@ -36,4 +34,4 @@ function promiseWhile(callback) {
}, 100);
}
module.exports = { promiseChain, promiseWhile };
module.exports = { promiseChain, promiseWhile };