mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 20:13:43 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -19,6 +19,8 @@ const DISCORD_ADAPTER: ChannelMessageAdapter = {
|
||||
};
|
||||
|
||||
export function getChannelMessageAdapter(channel: ChannelId): ChannelMessageAdapter {
|
||||
if (channel === "discord") return DISCORD_ADAPTER;
|
||||
if (channel === "discord") {
|
||||
return DISCORD_ADAPTER;
|
||||
}
|
||||
return DEFAULT_ADAPTER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user