From 0a0a739eddc5e7b7466b7e4838cdae1ff47513c5 Mon Sep 17 00:00:00 2001 From: jason5ng32 Date: Mon, 24 Aug 2026 18:21:38 +0800 Subject: [PATCH] Style: fix a misplaced guard comment and two quoting nits The provider-id comment block sat above requireValidRecordType; move it back over requireValidProviderId. Also drop needless quote escapes in the resolver-check script and match the ui/ double-quote style in ButtonGroupSeparator. Co-Authored-By: Claude Fable 5 --- common/guards.js | 6 +++--- .../components/ui/button-group/ButtonGroupSeparator.vue | 2 +- scripts/check-dns-resolvers.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/guards.js b/common/guards.js index 0da90a4c..70f3a673 100644 --- a/common/guards.js +++ b/common/guards.js @@ -101,9 +101,6 @@ export const requireValidReportId = (paramName = 'id') => (req, res, next) => { next(); }; -// Reject requests whose `id` isn't a known service-status provider slug. -// Used by the per-provider components / incidents endpoints, which select a -// row from the in-memory snapshot by id. // Whitelist ?type= against the record types the resolver actually handles. // Without it the DoH branch forwards any string verbatim to four third-party // endpoints, which makes this route a query proxy for types we never support. @@ -119,6 +116,9 @@ export const requireValidRecordType = (paramName = 'type') => (req, res, next) = next(); }; +// Reject requests whose `id` isn't a known service-status provider slug. +// Used by the per-provider components / incidents endpoints, which select a +// row from the in-memory snapshot by id. export const requireValidProviderId = (paramName = 'id') => (req, res, next) => { const id = req.query[paramName]; if (!id) { diff --git a/frontend/components/ui/button-group/ButtonGroupSeparator.vue b/frontend/components/ui/button-group/ButtonGroupSeparator.vue index 4fdcdc4c..9da1bdc5 100644 --- a/frontend/components/ui/button-group/ButtonGroupSeparator.vue +++ b/frontend/components/ui/button-group/ButtonGroupSeparator.vue @@ -1,7 +1,7 @@