[Tarantool-patches] [PATCH] Fix luacheck warnings in src/lua/*.lua

Sergey Bronnikov sergeyb at tarantool.org
Tue Apr 7 18:39:13 MSK 2020


Oleg,

On 12:33 Mon 06 Apr , Sergey Bronnikov wrote:
> > 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.
> 
> This patch is about fixing warnings produced by luacheck,
> Proposed change doesn't relate to Lua static analysis, so I suggest
> to make it in a separate patch.

I was wrong, 'frame' is unused here and can be removed, Vlad Sh. also
reminded me about it.


More information about the Tarantool-patches mailing list