mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:38:27 +00:00
fix: stabilize docs and tests after system event timestamps
This commit is contained in:
@@ -179,7 +179,9 @@ export function registerDiscordListener(
|
||||
listeners: Array<object>,
|
||||
listener: object,
|
||||
) {
|
||||
if (listeners.some((existing) => existing.constructor === listener.constructor)) {
|
||||
if (
|
||||
listeners.some((existing) => existing.constructor === listener.constructor)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
listeners.push(listener);
|
||||
|
||||
Reference in New Issue
Block a user