From 44ba50bd31211395a4a8e838140584e9754afb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alves?= Date: Mon, 19 Oct 2026 11:00:11 +0100 Subject: [PATCH] fix(lint): remove trailing commas in errorReporting.js 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 --- src/errorReporting.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/errorReporting.js b/src/errorReporting.js index a1cdbc7..4006aa8 100644 --- a/src/errorReporting.js +++ b/src/errorReporting.js @@ -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. });