util.pluginloader: Remove unnecessary return value suppressing the real load error

Mon, 22 Jun 2009 21:56:52 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 22 Jun 2009 21:56:52 +0100
changeset 1387
64f18488b275
parent 1386
9132f16666e4
child 1388
546caa44620c

util.pluginloader: Remove unnecessary return value suppressing the real load error

util/pluginloader.lua file | annotate | diff | comparison | revisions
--- a/util/pluginloader.lua	Mon Jun 22 21:54:34 2009 +0100
+++ b/util/pluginloader.lua	Mon Jun 22 21:56:52 2009 +0100
@@ -27,7 +27,7 @@
 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;

mercurial