summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/scripts/lua/util.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/indra/newview/scripts/lua/util.lua b/indra/newview/scripts/lua/util.lua
index bb8d492d12..898ddc58e3 100644
--- a/indra/newview/scripts/lua/util.lua
+++ b/indra/newview/scripts/lua/util.lua
@@ -4,10 +4,7 @@ local util = {}
-- cheap test whether table t is empty
function util.empty(t)
- for _ in pairs(t) do
- return false
- end
- return true
+ return not next(t)
end
-- reliable count of the number of entries in table t