no pointless optional chaining
This commit is contained in:
parent
7e1c3a43ee
commit
fc7461fef8
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ ipcMain.handle(IpcEvents.VIRT_MIC_LIST, () => {
|
|||
const audioPid = getRendererAudioServicePid();
|
||||
return obtainVenmic()
|
||||
?.list()
|
||||
?.filter(s => s["application.process.id"] !== audioPid)
|
||||
?.map(s => s["node.name"]);
|
||||
.filter(s => s["application.process.id"] !== audioPid)
|
||||
.map(s => s["node.name"]);
|
||||
});
|
||||
|
||||
ipcMain.handle(IpcEvents.VIRT_MIC_START, (_, target: string) => obtainVenmic()?.link("node.name", target, "include"));
|
||||
|
|
Reference in a new issue