From 241156cf9831e30a3bbb529478e73aaf233a759b Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 12 Jun 2024 16:45:35 -0400 Subject: Make popup() directly pass payload. The expression (payload or {}) is unnecessary, since that value will be converted to LLSD -- and both Lua nil and empty table convert to LLSD::isUndefined(). --- indra/newview/scripts/lua/popup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/scripts/lua/popup.lua b/indra/newview/scripts/lua/popup.lua index 65b04b513e..9eecc46753 100644 --- a/indra/newview/scripts/lua/popup.lua +++ b/indra/newview/scripts/lua/popup.lua @@ -11,7 +11,7 @@ local popup_meta = { return leap.request('LLNotifications', {op='requestAdd', name=notification, substitutions=vars, - payload=payload or {}}) + payload=payload}) end } -- cgit v1.2.3