mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:18:28 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -10,6 +10,8 @@ export function resolveAuthProfileDisplayLabel(params: {
|
||||
const profile = store.profiles[profileId];
|
||||
const configEmail = cfg?.auth?.profiles?.[profileId]?.email?.trim();
|
||||
const email = configEmail || (profile && "email" in profile ? profile.email?.trim() : undefined);
|
||||
if (email) return `${profileId} (${email})`;
|
||||
if (email) {
|
||||
return `${profileId} (${email})`;
|
||||
}
|
||||
return profileId;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user