mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
opt
This commit is contained in:
parent
50ab62f103
commit
1a2cdc8c0e
@ -58,7 +58,7 @@ export abstract class HttpServerBase {
|
|||||||
start(port: number) {
|
start(port: number) {
|
||||||
try {
|
try {
|
||||||
this.expressAPP.get('/', (req: Request, res: Response) => {
|
this.expressAPP.get('/', (req: Request, res: Response) => {
|
||||||
res.send(`${this.name}已启动`)
|
res.send(`${this.name} 已启动`)
|
||||||
})
|
})
|
||||||
this.listen(port)
|
this.listen(port)
|
||||||
llonebotError.httpServerError = ''
|
llonebotError.httpServerError = ''
|
||||||
|
@ -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
|
return value === undefined || value === null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user