From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp34.i.mail.ru (smtp34.i.mail.ru [94.100.177.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id C5E394696C3 for ; Thu, 9 Apr 2020 10:30:53 +0300 (MSK) References: <10d6c48a3f320e81b8bd8b05de385f20cbfead9c.1586341316.git.sergeyb@tarantool.org> From: Oleg Babin Message-ID: Date: Thu, 9 Apr 2020 10:30:51 +0300 MIME-Version: 1.0 In-Reply-To: <10d6c48a3f320e81b8bd8b05de385f20cbfead9c.1586341316.git.sergeyb@tarantool.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Subject: Re: [Tarantool-patches] [PATCH v2 4/6] Fix luacheck warnings in extra/dist/tarantoolctl.in List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sergey Bronnikov , tarantool-patches@dev.tarantool.org Cc: o.piskunov@tarantool.org Hi! Thanks for your patch! See my comment below. On 08/04/2020 18:43, Sergey Bronnikov wrote: > From: Sergey Bronnikov > > @@ -420,7 +419,7 @@ local cat_formats = setmetatable({ > json = cat_json_cb, > lua = cat_lua_cb, > }, { > - __index = function(self, cmd) > + __index = function(cmd) > error(("Unknown formatter '%s'"):format(cmd)) > end > }) You can't simply drop "self" argument. See [1]. I assume that a change that doesn't break behaviour is "function(_, cmd)". [1] https://www.lua.org/pil/13.4.1.html --- Oleg Babin