From 6bf9e6c2454f8852e8350fefc1b10666eee9a12c Mon Sep 17 00:00:00 2001 From: Dimas Lanjaka Date: Tue, 20 Feb 2024 14:28:19 +0700 Subject: [PATCH] chore: make callback on exit optional (#5421) --- lib/hexo/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hexo/index.ts b/lib/hexo/index.ts index c5e48f8723..97540dbf5c 100644 --- a/lib/hexo/index.ts +++ b/lib/hexo/index.ts @@ -660,7 +660,7 @@ class Hexo extends EventEmitter { }); } - exit(err: Error): Promise { + exit(err?: Error): Promise { if (err) { this.log.fatal( { err },