chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -15,16 +15,12 @@ export function listPairingChannels(): ChannelId[] {
|
||||
.map((plugin) => plugin.id);
|
||||
}
|
||||
|
||||
export function getPairingAdapter(
|
||||
channelId: ChannelId,
|
||||
): ChannelPairingAdapter | null {
|
||||
export function getPairingAdapter(channelId: ChannelId): ChannelPairingAdapter | null {
|
||||
const plugin = getChannelPlugin(channelId);
|
||||
return plugin?.pairing ?? null;
|
||||
}
|
||||
|
||||
export function requirePairingAdapter(
|
||||
channelId: ChannelId,
|
||||
): ChannelPairingAdapter {
|
||||
export function requirePairingAdapter(channelId: ChannelId): ChannelPairingAdapter {
|
||||
const adapter = getPairingAdapter(channelId);
|
||||
if (!adapter) {
|
||||
throw new Error(`Channel ${channelId} does not support pairing`);
|
||||
|
||||
Reference in New Issue
Block a user