refactor: Enable callback-return rule

This commit is contained in:
Joachim Van Herwegen
2024-03-12 15:36:47 +01:00
parent c65096020e
commit c96b60d4d3
3 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ function addPostListener(callback, formId = 'mainForm', errorId = 'error') {
event.preventDefault();
try {
await callback();
return await callback();
} catch (error) {
setError(error.message, errorId);
}