Skip to content

Commit

Permalink
Eliminate local var from trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 28, 2014
1 parent 9b6f357 commit ec98510
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/lua/wml-tags.lua
Expand Up @@ -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)
Expand Down

0 comments on commit ec98510

Please sign in to comment.