You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-23 22:36:32 +02:00
Tools: Add eslint rule prefer-await-to-then
This commit is contained in:
@@ -4,6 +4,7 @@ function promiseChain(chain, defaultValue = null) {
|
||||
});
|
||||
for (let i = 0; i < chain.length; i++) {
|
||||
const f = chain[i];
|
||||
// eslint-disable-next-line promise/prefer-await-to-then -- Old code before rule was applied
|
||||
output = output.then(f);
|
||||
}
|
||||
return output;
|
||||
|
||||
Reference in New Issue
Block a user