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 <noreply@anthropic.com>
This commit is contained in:
jason5ng32andClaude Fable 5 committed 2026-08-24 18:21:38 +08:00
1 parent f2df6e669d
commit 0a0a739edd
3 files changed
+5 -5

No files matched your search

+3 -3
View File
@@ -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) {
@@ -1,7 +1,7 @@
<script setup>
import { reactiveOmit } from "@vueuse/core";
import { cn } from "@/lib/utils";
import { Separator } from '@/components/ui/separator';
import { Separator } from "@/components/ui/separator";
const props = defineProps({
orientation: { type: String, required: false, default: "vertical" },
+1 -1
View File
@@ -25,7 +25,7 @@ export const ensureDigAvailable = async (exec = execFileAsync) => {
if (error?.code === 'ENOENT') {
throw new Error('The `dig` executable is required for DNS resolver checks; install dnsutils (Debian/Ubuntu) or bind (macOS).');
}
throw new Error(`Unable to run \'dig\': ${error instanceof Error ? error.message : String(error)}`);
throw new Error(`Unable to run 'dig': ${error instanceof Error ? error.message : String(error)}`);
}
};