# HG changeset patch # User Matthew Wild # Date 1378207342 -3600 # Node ID 5733a277237adab8c7f709b06e9b5117bd237bd7 # Parent 6e087f3b8f3b3bb5e0268f329e5ce9f7214b182c mod_admin_adhoc: As the only user of set:items(), update... it's now an iterator, and the extra keys() iterator is now unnecessary diff -r 6e087f3b8f3b -r 5733a277237a plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Tue Sep 03 12:21:43 2013 +0100 +++ b/plugins/mod_admin_adhoc.lua Tue Sep 03 12:22:22 2013 +0100 @@ -489,7 +489,7 @@ for _, host in pairs(hosts) do loaded_modules:append(array(keys(host.modules))); end - loaded_modules = array(keys(set.new(loaded_modules):items())):sort(); + loaded_modules = array(set.new(loaded_modules):items()):sort(); return { module = loaded_modules }; end, function(fields, err) local is_global = false; @@ -631,7 +631,7 @@ for _, host in pairs(hosts) do loaded_modules:append(array(keys(host.modules))); end - loaded_modules = array(keys(set.new(loaded_modules):items())):sort(); + loaded_modules = array(set.new(loaded_modules):items()):sort(); return { module = loaded_modules }; end, function(fields, err) local is_global = false;