Skip to content

Commit 7a8c7b4

Browse files
committed
lint fix
1 parent 1a944f7 commit 7a8c7b4

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

example/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { AppRegistry } from 'react-native';
22
import App from './src/App';
33
import { name as appName } from './app.json';
4-
import { registerGlobals, setLogLevel, setupIOSAudioManagement } from '@livekit/react-native';
4+
import {
5+
registerGlobals,
6+
setLogLevel,
7+
setupIOSAudioManagement,
8+
} from '@livekit/react-native';
59
import { LogLevel } from 'livekit-client';
610
import { setupErrorLogHandler } from './src/utils/ErrorLogHandler';
711
import { setupCallService } from './src/callservice/CallService';

example/src/RoomPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
useTracks,
2626
type TrackReferenceOrPlaceholder,
2727
AndroidAudioTypePresets,
28-
useIOSAudioManagement,
2928
useRNE2EEManager,
3029
} from '@livekit/react-native';
3130
import { Platform } from 'react-native';

src/audio/AudioManager.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { Platform } from 'react-native';
2-
import AudioSession, {
3-
type AppleAudioConfiguration,
4-
} from './AudioSession';
2+
import AudioSession, { type AppleAudioConfiguration } from './AudioSession';
53
import { log } from '..';
64
import { audioDeviceModuleEvents } from '@livekit/react-native-webrtc';
75

@@ -85,10 +83,13 @@ export function setupIOSAudioManagement(
8583
try {
8684
await tryConfigure(newState, oldState);
8785
} catch (error) {
88-
log.error('AudioSession configuration failed, stopping audio engine:', error);
86+
log.error(
87+
'AudioSession configuration failed, stopping audio engine:',
88+
error
89+
);
8990
// Throw the error code so the native AudioDeviceModuleObserver returns it
9091
// to the WebRTC engine, which will stop/rollback the operation.
91-
// eslint-disable-next-line no-throw-literal
92+
9293
throw kAudioEngineErrorFailedToConfigureAudioSession;
9394
}
9495
// Update the audio state only if configure succeeds

0 commit comments

Comments
 (0)