Skip to content

Commit

Permalink
chore: make callback on exit optional (#5421)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaslanjaka authored Feb 20, 2024
1 parent bc53720 commit 6bf9e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hexo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ class Hexo extends EventEmitter {
});
}

exit(err: Error): Promise<void> {
exit(err?: Error): Promise<void> {
if (err) {
this.log.fatal(
{ err },
Expand Down

0 comments on commit 6bf9e6c

Please sign in to comment.