Remove unnecessary code in getpath method

This commit is contained in:
Thomas Lynch
2023-08-06 19:22:00 +10:00
parent a82483224b
commit c28e4d438e

View File

@ -409,8 +409,7 @@ end
-- @param qs string
-- @return path string
function M.getpath(qs)
qs = qs:gsub('%?(.*)', '')
local path = qs:gsub("([^/]+)", function (s) return encode(decode(s), M.options.legal_in_path) end)
local path = qs:gsub('%?(.*)', '')
return path or ""
end