Closed raylu closed 1 year ago
?
, this.ending_bot?.sendMove(...)
still evaluates to undefined
, so we're still calling ignore_promise(undefined)
, which then tries to do undefined.catch(...)
This pull request has been marked stale and will be closed soon without further activity. Please update the PR or respond to this comment if you're still interested in working on this.
would still like to get this merged
Are we sure the current patch work?
I was thinking we need a question mark in ignore_promise (utils.ts)
export function ignore_promise(promise: Promise<any>): void {
promise?.catch((e) => {
trace.error(e);
});
}
line 2 promise?.catch
Edit: nevermind, i again missed that if statement that also fixes it. This patch is fine.
when
ending_bot
isundefined
,this.ending_bot?.sendMove(...)
evaluates toundefined
. this means we are callingignore_promise(undefined)
, which is how we getcloses #410