Skip to content

Commit 19f1f5f

Browse files
committed
fixup! Apply early-return-pattern to reduce nesting & cognitive complexity
1 parent 29f41de commit 19f1f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/room/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export enum MediaDeviceFailure {
9999
export namespace MediaDeviceFailure {
100100
export function getFailure(error: any): MediaDeviceFailure | undefined {
101101
if (!error || !('name' in error)) {
102-
return undefined
102+
return undefined;
103103
}
104104

105105
if (['NotFoundError', 'DevicesNotFoundError'].includes(error.name)) {

0 commit comments

Comments
 (0)