CJGarciaMusic / PowerUserWorkflow

All assets related to my Stream Deck work
2 stars 1 forks source link

Simplify default value #14

Closed Nick-Mazuk closed 2 years ago

Nick-Mazuk commented 2 years ago

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.