2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-28 09:20:41 +00:00

style: dont redeclare function param, just assign

This commit is contained in:
TorchedSammy 2021-12-04 17:56:37 -04:00
parent 144e158473
commit dd45766bae
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -79,7 +79,7 @@ end
ansikit.link = function(url, text)
if not url then error 'ansikit: missing url for hyperlink' end
local text = (text and text or 'link')
text = (text and text or 'link')
return lunacolors.blue('\27]8;;' .. url .. '\27\\' .. text .. '\27]8;;\27\\\n')
end