From: Oleg Babin <olegrok@tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>,
tarantool-patches@dev.tarantool.org, avtikhon@tarantool.org,
alexander.turenko@tarantool.org, o.piskunov@tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] Fix luacheck warnings in src/lua/*.lua
Date: Fri, 3 Apr 2020 17:21:30 +0300 [thread overview]
Message-ID: <141ac7a3-45c6-a720-a400-d3d699443550@tarantool.org> (raw)
In-Reply-To: <20200403093902.GA42848@pony.bronevichok.ru>
Hi! Thanks for your patch!
I think not only "src/lua/*.lua" should be checked but also
"src/box/lua/*.lua".
Also see one comment.
On 03/04/2020 12:39, Sergey Bronnikov wrote:
> diff --git a/src/lua/tap.lua b/src/lua/tap.lua
> index 94b080d5a..04497386e 100644
> --- a/src/lua/tap.lua
> +++ b/src/lua/tap.lua
> @@ -53,7 +53,7 @@ local function ok(test, cond, message, extra)
> io.write(string.format("not ok - %s\n", message))
> extra = extra or {}
> if test.trace then
> - local frame = debug.getinfo(3, "Sl")
> + debug.getinfo(3, "Sl")
I think debug.getinfo() could be completely removed. It doesn't change
any state it only returns some debug information that is completely unused.
---
Oleg Babin
next prev parent reply other threads:[~2020-04-03 14:21 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-03 9:39 Sergey Bronnikov
2020-04-03 10:13 ` lvasiliev
2020-04-03 11:03 ` Sergey Bronnikov
2020-04-03 14:21 ` Oleg Babin [this message]
2020-04-06 9:33 ` Sergey Bronnikov
2020-04-07 15:39 ` Sergey Bronnikov
2020-04-03 20:39 ` Vladislav Shpilevoy
2020-04-03 22:39 ` Vladislav Shpilevoy
2020-04-07 15:35 ` Sergey Bronnikov
2020-04-04 9:34 ` Igor Munkin
2020-04-07 15:15 ` Sergey Bronnikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=141ac7a3-45c6-a720-a400-d3d699443550@tarantool.org \
--to=olegrok@tarantool.org \
--cc=alexander.turenko@tarantool.org \
--cc=avtikhon@tarantool.org \
--cc=o.piskunov@tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH] Fix luacheck warnings in src/lua/*.lua' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox