fix: remove unused variables in terminal.ts and starter.ts

Removed 2 unused variables:
- Removed unused JWTPayload type import from terminal.ts
- Removed unused _promise parameter from starter.ts
This commit is contained in:
ZacharyZcR
2025-10-09 18:58:22 +08:00
parent a5188cad0b
commit 8f65fe8d1d
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ import { sshCredentials } from "../database/db/schema.js";
import { eq, and } from "drizzle-orm";
import { sshLogger } from "../utils/logger.js";
import { SimpleDBOps } from "../utils/simple-db-ops.js";
import { AuthManager, type JWTPayload } from "../utils/auth-manager.js";
import { AuthManager } from "../utils/auth-manager.js";
import { UserCrypto } from "../utils/user-crypto.js";
interface ConnectToHostData {

View File

@@ -128,7 +128,7 @@ import { systemLogger, versionLogger } from "./utils/logger.js";
process.exit(1);
});
process.on("unhandledRejection", (reason, _promise) => {
process.on("unhandledRejection", (reason) => {
systemLogger.error("Unhandled promise rejection", reason, {
operation: "error_handling",
});