Skip to content

Commit 6001b6a

Browse files
committed
Fix long lines in Lua script
1 parent 4b0d8d0 commit 6001b6a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

themes/explore/topics/protected_areas.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,26 @@ end
5252

5353
themepark:add_proc('area', function(object, data)
5454
local t = object.tags
55-
if t.boundary == 'protected_area' or t.boundary == 'national_park' or t.boundary == 'water_protection_area' or t.leisure == 'nature_reserve' or t.protected_area then
55+
if t.boundary == 'protected_area'
56+
or t.boundary == 'national_park' or t.boundary == 'water_protection_area'
57+
or t.leisure == 'nature_reserve' or t.protected_area then
5658

5759
-- Check that wikidata tags contain syntactically valid Q codes
5860
-- https://www.wikidata.org/wiki/{wikidata_code}
5961
local wikidata_code = get_qcode(t.wikidata)
6062
local operator_wikidata_code = get_qcode(t.operator_wikidata)
6163

6264
if t.wikidata ~= wikidata_code then
63-
themepark:insert('protected_areas_errors', { errormsg = 'invalid Q-item code for wikidata tag', value = t.wikidata }, t)
65+
themepark:insert('protected_areas_errors', {
66+
errormsg = 'invalid Q-item code for wikidata tag',
67+
value = t.wikidata
68+
}, t)
6469
end
6570
if t.operator_wikidata ~= operator_wikidata_code then
66-
themepark:insert('protected_areas_errors', { errormsg = 'invalid Q-item code for operator_wikidata tag', value = t.operator_wikidata }, t)
71+
themepark:insert('protected_areas_errors', {
72+
errormsg = 'invalid Q-item code for operator_wikidata tag',
73+
value = t.operator_wikidata
74+
}, t)
6775
end
6876

6977
-- WDPA is always an integer

0 commit comments

Comments
 (0)