From e4ee41618376eb06da19db5c6cd2601415909fa5 Mon Sep 17 00:00:00 2001 From: vapormusic Date: Fri, 5 Aug 2022 14:03:40 +0000 Subject: [PATCH] chore: Prettified Code [ci skip] --- src/main/plugins/raop.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/plugins/raop.ts b/src/main/plugins/raop.ts index 1a1c9d16..3281269c 100644 --- a/src/main/plugins/raop.ts +++ b/src/main/plugins/raop.ts @@ -89,7 +89,7 @@ export default class RAOP { // console.log(this.castDevices.findIndex((item: any) => {return (item.name == host.replace(".local","") && item.port == port )})) if ( 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 ) { this.castDevices.push({