Skip to content

Commit 4eebd96

Browse files
committed
fix: formatting
1 parent 18dd72e commit 4eebd96

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

apps/insights/src/server/pyth.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ export async function getFeedsForPublisherRequest(
4848
}
4949

5050
export const getFeedsRequest = async (cluster: Cluster) => {
51-
const url = new URL(
52-
`/api/pyth/get-feeds`,
53-
await getHost(),
54-
);
51+
const url = new URL(`/api/pyth/get-feeds`, await getHost());
5552
url.searchParams.set("cluster", ClusterToName[cluster]);
5653
url.searchParams.set("excludePriceComponents", "true");
5754

apps/insights/src/utils/get-host.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ export const getHost = async () => {
1818

1919
return `${proto}://${host}`;
2020
}
21-
}
21+
};
2222

2323
class NoHostError extends Error {
2424
constructor() {
25-
super("Request had neither an `x-forwarded-host` header nor a `host` header");
25+
super(
26+
"Request had neither an `x-forwarded-host` header nor a `host` header",
27+
);
2628
this.name = "NoHostError";
2729
}
28-
}
30+
}

0 commit comments

Comments
 (0)