From 19b3b3aa6d4916e8296f4b02e20784d08751ef67 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Sat, 14 Jul 2018 11:25:27 +0300 Subject: [PATCH] Cosmetic changes. --- json_rpc/clients/socketclient.nim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/json_rpc/clients/socketclient.nim b/json_rpc/clients/socketclient.nim index 841ed7e..ee4fea3 100644 --- a/json_rpc/clients/socketclient.nim +++ b/json_rpc/clients/socketclient.nim @@ -16,13 +16,10 @@ proc call*(self: RpcSocketClient, name: string, params: JsonNode): Future[Response] {.async.} = ## Remotely calls the specified RPC method. let id = self.getNextId() - - var - value = - $rpcCallNode(name, params, id) & "\c\l" + var value = $rpcCallNode(name, params, id) & "\c\l" if self.transport.isNil: - var connectStr = "" - raise newException(ValueError, "Transport is not initialised (missing a call to connect?)") + raise newException(ValueError, + "Transport is not initialised (missing a call to connect?)") let res = await self.transport.write(value) # TODO: Add actions when not full packet was send, e.g. disconnect peer. assert(res == len(value))