Skip to content

Commit a3834ba

Browse files
author
root
committed
Fix: duplicate throw and TypeScript syntax in api.ts
1 parent f8b0f23 commit a3834ba

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/lib/api.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,8 @@ export async function pollScan(scanId: string, options?: { intervalMs?: number;
182182

183183
throw new Error("Timeout while waiting for scan completion");
184184
}
185-
throw new Error("Timeout while waiting for scan completion");
186-
}
187185

188-
export const checkDatabaseConnection = async (): Promise<{ ok: boolean; error?: string }> => {
186+
export const checkDatabaseConnection = async () => {
189187
try {
190188
const response = await fetch(`${API_URL}/api/db-test`, {
191189
headers: await buildAuthHeaders(),

0 commit comments

Comments
 (0)