From cfe43e7d6fe9a3b5a2b2c325a6d7c20a77bf6108 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 10 Mar 2026 11:17:04 +0000 Subject: [PATCH] fix: correct duplicate condition in registerDeveloper dedup check Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- src/brain/brain-bridge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/brain/brain-bridge.js b/src/brain/brain-bridge.js index abbd8cb5..a68f52d4 100644 --- a/src/brain/brain-bridge.js +++ b/src/brain/brain-bridge.js @@ -325,7 +325,7 @@ function registerDeveloper(info) { // 去重检查:按 name 或 github_username 去重 const existing = devs.find(d => (info.name && d.name === info.name) || - (info.github_username && info.github_username && d.github_username === info.github_username) + (info.github_username && d.github_username && d.github_username === info.github_username) ); if (existing) {