We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c047bdf commit 6be6c8bCopy full SHA for 6be6c8b
parsers/leave.js
@@ -26,7 +26,8 @@ class LeaveParser extends BaseParser {
26
if (!match)
27
return null;
28
29
- return this._brikkit._players.find(p => p._controller === match[1]);
+ const player = this._brikkit._players.find(p => p._controller === match[1]);
30
+ return player !== undefined ? player : null;
31
}
32
33
0 commit comments