From f7a03b2eeab74ffe054e0594f275d76823eabd0c Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Tue, 5 Sep 2017 09:34:42 -0400 Subject: [PATCH] cleanup --- sys/apis/injector.lua | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/sys/apis/injector.lua b/sys/apis/injector.lua index e0fc813..7723204 100644 --- a/sys/apis/injector.lua +++ b/sys/apis/injector.lua @@ -1,13 +1,4 @@ -local branch = 'master' -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 DEFAULT_UPATH = 'https://raw.githubusercontent.com/kepler155c/opus/master/sys/apis' local PASTEBIN_URL = 'http://pastebin.com/raw' local GIT_URL = 'https://raw.githubusercontent.com' @@ -150,7 +141,7 @@ local function requireWrapper(env) if fn then local module, msg = fn(modname, env) if not module then - error(msg) + error(msg or (modname .. ' module returned nil'), 2) end package.loaded[modname] = module return module