mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
refactor: Remove commented out code and unused imports
This commit is contained in:
1 parent
218d433c14
commit
d795dbd788
6 files changed
+3
-25
No files matched your search
@@ -69,7 +69,7 @@ export const getSessionById = asyncHandler(
|
||||
}
|
||||
)
|
||||
|
||||
export const getActiveSessionControler = asyncHandler(
|
||||
export const getActiveSessionHandler = asyncHandler(
|
||||
async (req: Request, res: Response) => {
|
||||
const { questId } = matchedData(req)
|
||||
const user = await User.findById((req.user as Express.ExistingUser).id)
|
||||
|
||||
@@ -20,7 +20,7 @@ router.post(
|
||||
router.get(
|
||||
'/active',
|
||||
activeSessionValidator,
|
||||
sessionController.getActiveSessionControler
|
||||
sessionController.getActiveSessionHandler
|
||||
)
|
||||
router.get(
|
||||
'/:sessionId',
|
||||
|
||||
@@ -112,7 +112,7 @@ export default class CommandHandler extends SessionHandler {
|
||||
)
|
||||
)
|
||||
return checks.every((c) => c === true)
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user