style: apply oxfmt fixes

This commit is contained in:
Peter Steinberger
2026-01-15 01:53:14 +00:00
parent ad8799522c
commit 1b79730db8
11 changed files with 20 additions and 23 deletions

View File

@@ -24,9 +24,7 @@ describe("resolveChannelConfigWrites", () => {
},
},
};
expect(
resolveChannelConfigWrites({ cfg, channelId: "slack", accountId: "work" }),
).toBe(false);
expect(resolveChannelConfigWrites({ cfg, channelId: "slack", accountId: "work" })).toBe(false);
});
it("matches account ids case-insensitively", () => {
@@ -40,8 +38,6 @@ describe("resolveChannelConfigWrites", () => {
},
},
};
expect(
resolveChannelConfigWrites({ cfg, channelId: "slack", accountId: "work" }),
).toBe(false);
expect(resolveChannelConfigWrites({ cfg, channelId: "slack", accountId: "work" })).toBe(false);
});
});

View File

@@ -7,10 +7,7 @@ type ChannelConfigWithAccounts = {
accounts?: Record<string, { configWrites?: boolean }>;
};
function resolveAccountConfig(
accounts: ChannelConfigWithAccounts["accounts"],
accountId: string,
) {
function resolveAccountConfig(accounts: ChannelConfigWithAccounts["accounts"], accountId: string) {
if (!accounts || typeof accounts !== "object") return undefined;
if (accountId in accounts) return accounts[accountId];
const matchKey = Object.keys(accounts).find(