Skip to content

Commit 8533f06

Browse files
author
Ryan Dwyer
committed
Minor syntax fixes
1 parent e6a6185 commit 8533f06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/lua/sort/locationselector.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353
function get_profession_string(profession)
5454
local profession_string = df.profession[profession]:gsub('_', ' ')
5555
local dwarfified_string = profession_string:gsub('[Mm][Aa][Nn]', 'dwarf')
56-
return profession_string .. " " .. dwarfified_string
56+
return profession_string .. ' ' .. dwarfified_string
5757
end
5858

5959
function LocationSelectorOverlay:init()

plugins/lua/sort/places.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ local function get_zone_search_key(zone)
6767
if zone.location_id == -1 then -- zone is NOT a special location and we don't need to do anything special for type searching
6868
table.insert(result, df.civzone_type[zone.type]);
6969
else -- zone is a special location and we need to get its type from world data
70-
local building, success, _ = utils.binsearch(site.buildings, zone.location_id, 'id')
70+
local building, success = utils.binsearch(site.buildings, zone.location_id, 'id')
7171

7272
if success and building.name then
7373
table.insert(result, language_name_types[building.name.type] or '')
@@ -90,7 +90,7 @@ local function get_location_search_key(zone)
9090
local result = {}
9191

9292
-- get language_name and type (we dont need user-given zone name because it does not appear on this page)
93-
local building, success, _ = utils.binsearch(site.buildings, zone.location_id, 'id')
93+
local building, success = utils.binsearch(site.buildings, zone.location_id, 'id')
9494
if success and building.name then
9595
table.insert(result, language_name_types[building.name.type] or '')
9696
if building.name.has_name then

0 commit comments

Comments
 (0)