fix: remove unused variable in terminal.ts

Fixed @typescript-eslint/no-unused-vars errors:
- Removed unused userPayload variable (line 123)
- Removed unused cols and rows from destructuring (line 348)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
ZacharyZcR
2025-10-09 18:47:03 +08:00
parent 9d6d8a7e0e
commit 64df49677b
2 changed files with 535 additions and 3 deletions

View File

@@ -120,7 +120,6 @@ const wss = new WebSocketServer({
wss.on("connection", async (ws: WebSocket, req) => {
let userId: string | undefined;
let userPayload: JWTPayload | undefined;
try {
const url = parseUrl(req.url!, true);
@@ -154,7 +153,6 @@ wss.on("connection", async (ws: WebSocket, req) => {
}
userId = payload.userId;
userPayload = payload;
} catch (error) {
sshLogger.error(
"WebSocket JWT verification failed during connection",
@@ -347,7 +345,7 @@ wss.on("connection", async (ws: WebSocket, req) => {
});
async function handleConnectToHost(data: ConnectToHostData) {
const { cols, rows, hostConfig, initialPath, executeCommand } = data;
const { hostConfig, initialPath, executeCommand } = data;
const {
id,
ip,