aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-06-22 21:56:52 +0100
committerMatthew Wild <mwild1@gmail.com>2009-06-22 21:56:52 +0100
commit1fadaf4fa717fe72536989319369f1209b0dbf3e (patch)
treeadea7b9d2999bf5a2fa0f89a36c3543ac60d62e9 /util
parent4e32c53614b8d7f44cf44e9e2ff8efc3a7baad26 (diff)
downloadprosody-1fadaf4fa717fe72536989319369f1209b0dbf3e.tar.gz
prosody-1fadaf4fa717fe72536989319369f1209b0dbf3e.zip
util.pluginloader: Remove unnecessary return value suppressing the real load error
Diffstat (limited to 'util')
-rw-r--r--util/pluginloader.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pluginloader.lua b/util/pluginloader.lua
index 1bf22f62..86075c90 100644
--- a/util/pluginloader.lua
+++ b/util/pluginloader.lua
@@ -27,7 +27,7 @@ end
function load_code(plugin, resource)
local content, err = load_resource(plugin, resource);
if not content then return content, err; end
- return loadstring(content, err), err;
+ return loadstring(content, err);
end
return _M;