style(shell,smoke): lint fixes

This commit is contained in:
hh committed 2026-10-16 02:33:28 +00:00
1 parent f6d76bb307
commit a2711f1667
2 files changed
+6 -4

No files matched your search

+4 -1
View File
@@ -8,7 +8,10 @@ const start = `${month}-01`;
const end = new Date().toISOString().slice(0, 10); const end = new Date().toISOString().slice(0, 10);
const range = `start=${start}&end=${end}`; const range = `start=${start}&end=${end}`;
type Check = { path: string; keys: string[] }; interface Check {
keys: string[];
path: string;
}
const checks: Check[] = [ const checks: Check[] = [
{ keys: ["data.version", "data.api_version"], path: "/v1/about" }, { keys: ["data.version", "data.api_version"], path: "/v1/about" },
+2 -3
View File
@@ -32,9 +32,8 @@
if (!period.ready) { if (!period.ready) {
return; return;
} }
const url = page.url; const { url } = page;
const start = period.start; const { start, end } = period;
const end = period.end;
untrack(() => { untrack(() => {
const fromUrl = rangeFromUrl(url); const fromUrl = rangeFromUrl(url);
if (url.href !== lastHref && fromUrl) { if (url.href !== lastHref && fromUrl) {