Changes
Jump to navigation
Jump to search
elseif expiry then -- Expiry is an error string.else
no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj.expiry
if expiry == 'indef' then return nil elseif type(expiry) == 'number' then
return Blurb.formatDate(expiry)
return expiry
end