1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Revert "Tools: Added eslint rule arrow-parens"

This reverts commit 0b6f5581f0.

It causes too many conflicts with pull requests.
This commit is contained in:
Laurent Cozic
2020-05-21 09:14:33 +01:00
parent b83eee751f
commit a96734f5be
166 changed files with 444 additions and 445 deletions

View File

@@ -260,7 +260,7 @@ function importEnex(parentFolderId, filePath, importOptions = null) {
const notes = [];
let processingNotes = false;
stream.on('error', (error) => {
stream.on('error', error => {
reject(new Error(error.toString()));
});
@@ -327,7 +327,7 @@ function importEnex(parentFolderId, filePath, importOptions = null) {
return true;
}
saxStream.on('error', (error) => {
saxStream.on('error', error => {
importOptions.onError(error);
});
@@ -421,7 +421,7 @@ function importEnex(parentFolderId, filePath, importOptions = null) {
notes.push(note);
if (notes.length >= 10) {
processNotes().catch((error) => {
processNotes().catch(error => {
importOptions.onError(error);
});
}
@@ -463,7 +463,7 @@ function importEnex(parentFolderId, filePath, importOptions = null) {
saxStream.on('end', function() {
// Wait till there is no more notes to process.
const iid = setInterval(() => {
processNotes().then((allDone) => {
processNotes().then(allDone => {
if (allDone) {
clearTimeout(iid);
resolve();