Eliminate local var from trim()

This commit is contained in:
Charles Dang 2014-12-28 19:15:21 +11:00
parent 9b6f357a27
commit ec985105ef

View file

@ -20,8 +20,7 @@ local location_set = wesnoth.require "lua/location_set.lua"
local wml_actions = wesnoth.wml_actions
local function trim(s)
local r = string.gsub(s, "^%s*(.-)%s*$", "%1")
return r
return string.gsub(s, "^%s*(.-)%s*$", "%1")
end
local function split(s)