diff options
author | Steven Barth <steven@midlink.org> | 2008-06-25 18:09:53 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-06-25 18:09:53 +0000 |
commit | e0e498313064c9664d5f86d336d87233ec2792a5 (patch) | |
tree | cbb8150057bb0c4a76eb24ce763ac86613760a9b /libs/core | |
parent | 741bbe7817d94a02270e3bf425b6e0ff77c5015d (diff) |
* libs/httpd: Optimized performance
Diffstat (limited to 'libs/core')
-rw-r--r-- | libs/core/luasrc/util.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/core/luasrc/util.lua b/libs/core/luasrc/util.lua index e227fc730..9f1d050e7 100644 --- a/libs/core/luasrc/util.lua +++ b/libs/core/luasrc/util.lua @@ -87,9 +87,9 @@ end -- Checks whether a table has an object "value" in it function contains(table, value) - for k,v in pairs(table) do + for k, v in pairs(table) do if value == v then - return true + return k end end return false |