chore: Prettified Code

[ci skip]
This commit is contained in:
vapormusic 2022-08-05 14:03:40 +00:00 committed by cider-chore[bot]
parent d5add5071d
commit e4ee416183

View file

@ -89,7 +89,7 @@ export default class RAOP {
// console.log(this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )})) // console.log(this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )}))
if ( if (
this.castDevices.findIndex((item: any) => { this.castDevices.findIndex((item: any) => {
return item != null && item.name == (host ?? "Unknown").replace(".local", "") && item.port == port && (item.host == (addresses ? addresses[0] : "")); return item != null && item.name == (host ?? "Unknown").replace(".local", "") && item.port == port && item.host == (addresses ? addresses[0] : "");
}) == -1 }) == -1
) { ) {
this.castDevices.push({ this.castDevices.push({