mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 10:50:35 +00:00
chore: Lint extensions folder.
This commit is contained in:
@@ -166,10 +166,12 @@ function setMSTeamsTeamsAllowlist(
|
||||
const teams: Record<string, { channels?: Record<string, unknown> }> = { ...baseTeams };
|
||||
for (const entry of entries) {
|
||||
const teamKey = entry.teamKey;
|
||||
if (!teamKey) continue;
|
||||
if (!teamKey) {
|
||||
continue;
|
||||
}
|
||||
const existing = teams[teamKey] ?? {};
|
||||
if (entry.channelKey) {
|
||||
const channels = { ...(existing.channels ?? {}) };
|
||||
const channels = { ...existing.channels };
|
||||
channels[entry.channelKey] = channels[entry.channelKey] ?? {};
|
||||
teams[teamKey] = { ...existing, channels };
|
||||
} else {
|
||||
@@ -334,7 +336,9 @@ export const msteamsOnboardingAdapter: ChannelOnboardingAdapter = {
|
||||
([teamKey, value]) => {
|
||||
const channels = value?.channels ?? {};
|
||||
const channelKeys = Object.keys(channels);
|
||||
if (channelKeys.length === 0) return [teamKey];
|
||||
if (channelKeys.length === 0) {
|
||||
return [teamKey];
|
||||
}
|
||||
return channelKeys.map((channelKey) => `${teamKey}/${channelKey}`);
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user