fix: correct duplicate condition in registerDeveloper dedup check

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-10 11:17:04 +00:00
parent e160fbbde1
commit cfe43e7d6f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {