You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-12-02 22:49:09 +02:00
Added no-floating-promises eslint rule
This commit is contained in:
@@ -133,7 +133,7 @@ export default function useFormNote(dependencies: HookDependencies) {
|
||||
await initNoteState(n);
|
||||
};
|
||||
|
||||
loadNote();
|
||||
void loadNote();
|
||||
|
||||
return () => {
|
||||
cancelled = true;
|
||||
@@ -183,7 +183,7 @@ export default function useFormNote(dependencies: HookDependencies) {
|
||||
handleAutoFocus(!!n.is_todo);
|
||||
}
|
||||
|
||||
loadNote();
|
||||
void loadNote();
|
||||
|
||||
return () => {
|
||||
cancelled = true;
|
||||
@@ -207,7 +207,7 @@ export default function useFormNote(dependencies: HookDependencies) {
|
||||
|
||||
useEffect(() => {
|
||||
if (previousNoteId !== formNote.id) {
|
||||
onResourceChange();
|
||||
void onResourceChange();
|
||||
}
|
||||
}, [previousNoteId, formNote.id, onResourceChange]);
|
||||
|
||||
@@ -222,7 +222,7 @@ export default function useFormNote(dependencies: HookDependencies) {
|
||||
});
|
||||
}
|
||||
|
||||
runEffect();
|
||||
void runEffect();
|
||||
|
||||
return () => {
|
||||
cancelled = true;
|
||||
|
||||
Reference in New Issue
Block a user