diff --git a/src/media.ts b/src/media.ts index f295633..5355235 100644 --- a/src/media.ts +++ b/src/media.ts @@ -89,9 +89,8 @@ async function checkDevicePermissions(deviceKinds: DeviceKind[]): Promise permission.state === 'granted')) { return true; } - } catch (e: unknown) { - error(e); - } + // eslint-disable-next-line no-empty + } catch (e: unknown) {} try { const devices: MediaDeviceInfo[] = await enumerateDevices(); @@ -99,9 +98,8 @@ async function checkDevicePermissions(deviceKinds: DeviceKind[]): Promise deviceKinds.includes(device.kind as DeviceKind)) .every((device: MediaDeviceInfo) => device.label); - } catch (e: unknown) { - error(e); - } + // eslint-disable-next-line no-empty + } catch (e: unknown) {} return false; }