mirror of
https://github.com/kepler155c/opus
synced 2024-06-18 11:20:01 +00:00
cleanup
This commit is contained in:
parent
bb18cbc3b4
commit
f7a03b2eea
|
@ -1,13 +1,4 @@
|
||||||
local branch = 'master'
|
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/master/sys/apis'
|
||||||
if fs.exists('.branch') then
|
|
||||||
local f = fs.open('.branch', "r")
|
|
||||||
if f then
|
|
||||||
branch = f.readAll()
|
|
||||||
f.close()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/' .. branch .. '/sys/apis'
|
|
||||||
local PASTEBIN_URL = 'http://pastebin.com/raw'
|
local PASTEBIN_URL = 'http://pastebin.com/raw'
|
||||||
local GIT_URL = 'https://raw.githubusercontent.com'
|
local GIT_URL = 'https://raw.githubusercontent.com'
|
||||||
|
|
||||||
|
@ -150,7 +141,7 @@ local function requireWrapper(env)
|
||||||
if fn then
|
if fn then
|
||||||
local module, msg = fn(modname, env)
|
local module, msg = fn(modname, env)
|
||||||
if not module then
|
if not module then
|
||||||
error(msg)
|
error(msg or (modname .. ' module returned nil'), 2)
|
||||||
end
|
end
|
||||||
package.loaded[modname] = module
|
package.loaded[modname] = module
|
||||||
return module
|
return module
|
||||||
|
|
Loading…
Reference in New Issue
Block a user