Skip to content

Commit

Permalink
fmt and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Jan 11, 2025
1 parent 3425bf6 commit 15cbe95
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions services/console/src/components/landing/Customers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@ import { BENCHER_GITHUB_URL } from "../../util/ext";
import { CUSTOMERS } from "./customers.tsx";
const padQuote = (quote: string) => {
const MAX = CUSTOMERS.reduce((acc, customers) => {
const max = customers.reduce((acc, customer) => {
return Math.max(acc, customer.quote.length);
}, 0);
return Math.max(acc, max);
}, 0);
const padding = [];
const quoteLength = quote.length;
if (quoteLength < MAX) {
for (let i = 0; i < MAX - quoteLength; i++) {
padding.push(null);
}
}
return padding;
const MAX = CUSTOMERS.reduce((acc, customers) => {
const max = customers.reduce((acc, customer) => {
return Math.max(acc, customer.quote.length);
}, 0);
return Math.max(acc, max);
}, 0);
const padding = [];
const quoteLength = quote.length;
if (quoteLength < MAX) {
for (let i = 0; i < MAX - quoteLength; i++) {
padding.push(null);
}
}
return padding;
};
---

Expand Down
20 changes: 10 additions & 10 deletions services/console/src/util/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@ export const getPlatform = async () => {
return Platform.Unix;
default:
if (
(navigator.appVersion?.indexOf("Win") ?? -1) != -1 ||
(navigator.appVersion?.indexOf("Mac") ?? -1) != -1 ||
(navigator.appVersion?.indexOf("FreeBSD") ?? -1) != -1
(navigator.appVersion?.indexOf("Win") ?? -1) !== -1 ||
(navigator.appVersion?.indexOf("Mac") ?? -1) !== -1 ||
(navigator.appVersion?.indexOf("FreeBSD") ?? -1) !== -1
) {
return Platform.Unix;
}
if (
(navigator.oscpu?.indexOf("Win32") ?? -1) != -1 ||
(navigator.oscpu?.indexOf("Win64") ?? -1) != -1
(navigator.oscpu?.indexOf("Win32") ?? -1) !== -1 ||
(navigator.oscpu?.indexOf("Win64") ?? -1) !== -1
) {
return Platform.Windows;
}
if (
(navigator.oscpu?.indexOf("Mac") ?? -1) != -1 ||
(navigator.oscpu?.indexOf("Linux") ?? -1) != -1 ||
(navigator.oscpu?.indexOf("FreeBSD") ?? -1) != -1 ||
(navigator.oscpu?.indexOf("NetBSD") ?? -1) != -1 ||
(navigator.oscpu?.indexOf("SunOS") ?? -1) != -1
(navigator.oscpu?.indexOf("Mac") ?? -1) !== -1 ||
(navigator.oscpu?.indexOf("Linux") ?? -1) !== -1 ||
(navigator.oscpu?.indexOf("FreeBSD") ?? -1) !== -1 ||
(navigator.oscpu?.indexOf("NetBSD") ?? -1) !== -1 ||
(navigator.oscpu?.indexOf("SunOS") ?? -1) !== -1
) {
return Platform.Unix;
}
Expand Down

0 comments on commit 15cbe95

Please sign in to comment.