fix: transform_path nil input (#1576)

This commit is contained in:
Simon Hauser
2021-12-27 09:49:07 +01:00
committed by GitHub
parent a1f838d436
commit 802fe5d49e

View File

@@ -230,6 +230,9 @@ local calc_result_length = function(truncate_len)
end end
utils.transform_path = function(opts, path) utils.transform_path = function(opts, path)
if path == nil then
return
end
if is_uri(path) then if is_uri(path) then
return path return path
end end