plugins(chore): fix static check errors

This commit is contained in:
Qingping Hou
2016-11-01 00:31:24 -07:00
parent 378ba2c7fe
commit 93873bfd69
8 changed files with 23 additions and 44 deletions

View File

@@ -7,7 +7,7 @@ local KOSyncClient = {
}
function KOSyncClient:new(o)
local o = o or {}
if o == nil then o = {} end
setmetatable(o, self)
self.__index = self
if o.init then o:init() end
@@ -21,7 +21,7 @@ function KOSyncClient:init()
base_url = self.custom_url,
})
package.loaded['Spore.Middleware.GinClient'] = {}
require('Spore.Middleware.GinClient').call = function(self, req)
require('Spore.Middleware.GinClient').call = function(_, req)
req.headers['accept'] = "application/vnd.koreader.v1+json"
end
package.loaded['Spore.Middleware.KOSyncAuth'] = {}