From abfee5ac10e4a5ae157abdf12369ad8a33acc2bf Mon Sep 17 00:00:00 2001 From: Abhityagi16 Date: Sun, 20 Aug 2023 09:08:56 +0530 Subject: [PATCH] Removed unnecessary line creating an extra object --- kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java b/kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java index bab0f4b..8ed0f56 100755 --- a/kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java +++ b/kiteconnect/src/com/zerodhatech/ticker/KiteTicker.java @@ -389,7 +389,6 @@ public void setMode(ArrayList tokens, String mode){ public void subscribe(ArrayList tokens) { if(ws != null) { if (ws.isOpen()) { - createTickerJsonObject(tokens, mSubscribe); ws.sendText(createTickerJsonObject(tokens, mSubscribe).toString()); subscribedTokens.addAll(tokens); for(int i = 0; i < tokens.size(); i++){ @@ -741,4 +740,4 @@ public Date deserialize(JsonElement jsonElement, Type type, JsonDeserializationC return gson.fromJson(String.valueOf(data.get("data")), Order.class); } -} \ No newline at end of file +}