Skip to content

Commit 29ceade

Browse files
committed
Fix logout route TypeScript error - add explicit return statement
1 parent 790d78f commit 29ceade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/src/routes/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ router.post('/logout', async (req: Request, res: Response) => {
107107
res.clearCookie('homelab.sid');
108108
return res.json({ message: 'Logged out successfully' });
109109
});
110+
return; // Explicitly return to satisfy TypeScript
110111
} catch (error) {
111112
logger.error('Error in logout route', { error });
112113
return res.status(500).json({ error: 'Failed to logout' });

0 commit comments

Comments
 (0)