The standard pattern for creating a default value in Lua is:
item = item or "default"
instead of:
if item == nil then item = "default" end
This PR doesn't really impact much other than making something more idiomatic to Lua. The existing way of setting the default value is perfectly valid.
The standard pattern for creating a default value in Lua is:
instead of:
This PR doesn't really impact much other than making something more idiomatic to Lua. The existing way of setting the default value is perfectly valid.