From 5282d9082a9d7bd6fb76fe6de4dee65a3f917f27 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Wed, 15 Feb 2023 16:49:38 +0100 Subject: [PATCH] lint --- .../info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt index 311fa80b06..4c3a406753 100644 --- a/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt +++ b/plugins/sync/src/main/java/info/nightscout/plugins/sync/nsclientV3/NSClientV3Plugin.kt @@ -401,7 +401,7 @@ class NSClientV3Plugin @Inject constructor( it.put("accessToken", sp.getString(R.string.key_ns_client_token, "")) } rxBus.send(EventNSClientNewLog("► WS", "requesting auth for alarms")) - socket?.emit("subscribe", authMessage, Ack { args -> + socket.emit("subscribe", authMessage, Ack { args -> val response = args[0] as JSONObject wsConnected = if (response.optBoolean("success")) { rxBus.send(EventNSClientNewLog("◄ WS", response.optString("message")))