From 319573bb1e319afc156511c9e99f957cff6e95cb Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Thu, 14 May 2020 17:47:45 +0200 Subject: [PATCH] Fixes on the WIP "ipc/json" library. This fixes parse_ipc_json that had a quite useless prototype, it now looks functionnal enough. --- src/json.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.cr b/src/json.cr index d657e27..034f95c 100644 --- a/src/json.cr +++ b/src/json.cr @@ -33,7 +33,7 @@ end # CAUTION: Only use this method on an Array(IPC::JSON.class) class Array(T) - def parse_ipc_json(messages : Array(IPC::JSON.class), message : IPC::Message) : IPC::JSON? + def parse_ipc_json(message : IPC::Message) : IPC::JSON? message_type = find &.type.==(message.utype) payload = String.new message.payload