Skip to content

Commit

Permalink
fix: convert to else if
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Mar 27, 2024
1 parent 8b3e671 commit 9e82171
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,11 @@ export class AudioSinkManager {
const label = device.label.toLowerCase();
if (label.includes('speakerphone')) {
speakerPhone = device;
}
if (label.includes('wired')) {
} else if (label.includes('wired')) {
wired = device;
}
if (label.includes('bluetooth')) {
} else if (label.includes('bluetooth')) {
bluetoothDevice = device;
}
if (label.includes('earpiece')) {
} else if (label.includes('earpiece')) {
earpiece = device;
}
}
Expand Down

0 comments on commit 9e82171

Please sign in to comment.