Module:Protection banner: Difference between revisions

simplify reason-setting code
(no need for args.reason)
(simplify reason-setting code)
Line 124: Line 124:


-- Set reason
-- Set reason
do
if args[1] then
local reason = args[1]
self.reason = mw.ustring.lower(args[1])
if reason then
self.reason = mw.ustring.lower(reason)
end
end
end