fix(lint): remove trailing commas in errorReporting.js
ai-news-writer-ci / test (pull_request) Successful in 47s

CI's lint step was unreachable while the security-audit gate (BIT-31604)
failed first; now that it's fixed, eslint's comma-dangle rule surfaces
on this file. No functional change.

Paperclip-Issue: BIT-31162
This commit is contained in:
jos-alves committed 2026-10-19 11:00:11 +01:00
1 parent d90ccdeba0
commit 44ba50bd31
1 file changed
+4 -4
+4 -4
View File
@@ -52,8 +52,8 @@ function reportError(error, context = {}) {
gitea_repo: meta.gitea_repo,
component: context.component || 'worker',
environment: process.env.NODE_ENV || 'production',
error_type: (error && error.name) || 'Error',
},
error_type: (error && error.name) || 'Error'
}
};
const url = `${ingestBase()}${INGEST_PATH}`;
@@ -62,9 +62,9 @@ function reportError(error, context = {}) {
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${token}`,
'X-Api-Key': token,
'X-Api-Key': token
},
body: JSON.stringify({ events: [event] }),
body: JSON.stringify({ events: [event] })
}).catch(() => {
// Never let reporting failures affect the app.
});