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