mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-09-11 19:17:17 +03:00
fix issues found by luacheck
The variable shadowing causes bad results when used with LuaJIT.
This commit is contained in:
parent
5afd96d210
commit
781e83ddc3
@ -5,6 +5,7 @@ local module = {}
|
|||||||
|
|
||||||
local PRE_DELETE = nil
|
local PRE_DELETE = nil
|
||||||
local PRE_EXTRAS = nil
|
local PRE_EXTRAS = nil
|
||||||
|
local POST_DELETE = nil
|
||||||
local MAIN_KEYS = nil
|
local MAIN_KEYS = nil
|
||||||
local NAMES = nil
|
local NAMES = nil
|
||||||
local ADDRESS_TAGS = nil
|
local ADDRESS_TAGS = nil
|
||||||
@ -249,9 +250,9 @@ function Place:write_row(k, v, save_extra_mains)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if save_extra_mains then
|
if save_extra_mains then
|
||||||
for k, v in pairs(self.object.tags) do
|
for tk, tv in pairs(self.object.tags) do
|
||||||
if save_extra_mains(k, v) then
|
if save_extra_mains(tk, tv) then
|
||||||
self.extratags[k] = nil
|
self.extratags[tk] = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -539,7 +540,7 @@ function module.set_unused_handling(data)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function set_relation_types(data)
|
function module.set_relation_types(data)
|
||||||
module.RELATION_TYPES = {}
|
module.RELATION_TYPES = {}
|
||||||
for k, v in data do
|
for k, v in data do
|
||||||
if v == 'multipolygon' then
|
if v == 'multipolygon' then
|
||||||
|
Loading…
Reference in New Issue
Block a user