mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
minor: fix luacheck errors
This commit is contained in:
@@ -25,7 +25,6 @@ local Blitbuffer = require("ffi/blitbuffer")
|
||||
local Screen = require("device").screen
|
||||
local Font = require("ui/font")
|
||||
local TimeVal = require("ui/timeval")
|
||||
local RenderText = require("ui/rendertext")
|
||||
|
||||
local template = require("ffi/util").template
|
||||
local util = require("util")
|
||||
@@ -440,7 +439,7 @@ function BookStatusWidget:generateSwitchGroup(width)
|
||||
local current_status = self.summary.status
|
||||
local position = 2
|
||||
for k, v in pairs(args) do
|
||||
if v == curent_status then
|
||||
if v == current_status then
|
||||
position = k
|
||||
end
|
||||
end
|
||||
|
||||
@@ -31,7 +31,7 @@ function CloseButton:init()
|
||||
text = "×",
|
||||
face = Font:getFace("cfont", 32),
|
||||
}
|
||||
padding_span = HorizontalSpan:new{ width = Screen:scaleBySize(14) }
|
||||
local padding_span = HorizontalSpan:new{ width = Screen:scaleBySize(14) }
|
||||
|
||||
self[1] = FrameContainer:new{
|
||||
bordersize = 0,
|
||||
|
||||
Reference in New Issue
Block a user