If you use the string 'function', it is indented as if you used the keyword function: For example: local a = type(x) == 'function' and x or nil indents one tab after return