Skip to content

Commit

Permalink
remove async functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bdougie committed Dec 29, 2023
1 parent 24c17a2 commit 6bb9549
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pages/[owner]/[repo]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ const ChildWithSWR = (props: { owner: string; repo: string }) => {
return <>Loading...</>;
}

const chartData = prCounts(data);
const chartData = prCounts(data);

return (
<>
<pre>
Expand Down
6 changes: 3 additions & 3 deletions pages/[owner]/[repo]/prCounts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

const prCounts = async (prData) => {
const meta = await count(prData);
const prsPerDay = await prPerDay(prData);
const prCounts = (prData) => {
const meta = count(prData);
const prsPerDay = prPerDay(prData);

return {
meta,
Expand Down

0 comments on commit 6bb9549

Please sign in to comment.