style: format code with Prettier

This commit fixes the style issues introduced in 6e31b44 according to the output
from Prettier.

Details: None
This commit is contained in:
deepsource-autofix[bot] 2024-05-04 15:26:36 +00:00 committed by GitHub
parent 6e31b44137
commit cd6fdf3b29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 131 additions and 105 deletions

View file

@ -1,13 +1,13 @@
import TestData from '%/lib/test-data.ts';
import TestData from "%/lib/test-data.ts";
export async function getPopularToday() {
const res = await fetch("/api/items")
const data = res.json()
const res = await fetch("/api/items");
const data = res.json();
if (res.ok) {
return data
return data;
} else {
throw new Error("Failed to fetch popular today")
throw new Error("Failed to fetch popular today");
}
}