From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp59.i.mail.ru (smtp59.i.mail.ru [217.69.128.39]) (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 0EBC84696C3 for ; Fri, 10 Apr 2020 17:05:29 +0300 (MSK) Date: Fri, 10 Apr 2020 17:05:27 +0300 From: Sergey Bronnikov Message-ID: <20200410140527.GB34302@pony.bronevichok.ru> References: <10d6c48a3f320e81b8bd8b05de385f20cbfead9c.1586341316.git.sergeyb@tarantool.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: Oleg Babin Cc: o.piskunov@tarantool.org, Sergey Bronnikov , tarantool-patches@dev.tarantool.org Oleg, thanks. Updated in the branch. On 10:30 Thu 09 Apr , Oleg Babin wrote: > 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 -- sergeyb@