This commit is contained in:
idranme
2024-08-07 22:08:47 +08:00
parent 50ab62f103
commit 1a2cdc8c0e
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ export abstract class HttpServerBase {
start(port: number) {
try {
this.expressAPP.get('/', (req: Request, res: Response) => {
res.send(`${this.name}已启动`)
res.send(`${this.name} 已启动`)
})
this.listen(port)
llonebotError.httpServerError = ''

View File

@@ -41,7 +41,7 @@ export function mergeNewProperties(newObj: any, oldObj: any) {
})
}
export function isNull(value: any): value is null | undefined | void {
export function isNull(value: unknown) {
return value === undefined || value === null
}