Skip to content

Commit 9346d4e

Browse files
committed
chore: Make process handlers sync
1 parent 394d15f commit 9346d4e

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/ps/commands/help.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,7 @@ export const command: PSCommand = {
157157
<Button name="send" value={`/msg ${Bot.status.userid},${prefix}commands`}>
158158
commands
159159
</Button>{' '}
160-
you can use? {/* TODO: Move this to PartBot! */}
161-
Alternatively, you can take a look at my <a href="https://github.com/PartMan7/PartBot">source code</a>.
160+
you can use? Alternatively, you can take a look at my <a href="https://github.com/PartMan7/PartBot">source code</a>.
162161
</p>
163162
</div>
164163
</center>

src/sentinel/process.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ export function processHandler(): { kill: () => void } {
88
// Unfortunately, I like living life on the edge
99
// We stay alive!
1010
}
11-
function rejectionHandler(promise: unknown, reasonPromise: Promise<unknown>) {
12-
reasonPromise.then(reason => errorLog(new Error(`Promise failed with reason ${reason}`)));
11+
function rejectionHandler(_promise: unknown, reasonPromise: Promise<unknown>) {
12+
errorLog(new Error(`Promise failed with reason ${reasonPromise}`));
1313
}
1414
process.on('uncaughtException', errorHandler);
1515
process.on('unhandledRejection', rejectionHandler);

0 commit comments

Comments
 (0)