[Tarantool-patches] [PATCH v4 5/10] Fix luacheck warnings in src/box/lua/
Sergey Bronnikov
sergeyb at tarantool.org
Thu May 7 17:34:27 MSK 2020
On 13:32 Thu 07 May , Sergey Bronnikov wrote:
<snipped>
> > > diff --git a/src/box/lua/schema.lua b/src/box/lua/schema.lua
> > > index 85fcca562..de47b807e 100644
> > > --- a/src/box/lua/schema.lua
> > > +++ b/src/box/lua/schema.lua
> >
> > <snipped>
> >
> > > @@ -582,9 +580,9 @@ end
> > > --
> > > local function format_field_resolve(format, path, what)
> > > assert(type(path) == 'number' or type(path) == 'string')
> > > - local idx = nil
> > > + local idx
> > > local relative_path = nil
> > > - local field_name = nil
> > > + local field_name
> >
> > You can simply move it down to its initialization.
>
> Done
reverted, because change broke tests
<snipped>
--
sergeyb@
More information about the Tarantool-patches
mailing list