Skip to content

Commit 1a3b711

Browse files
Konstantin IlchenkoKonstantin Ilchenko
authored andcommitted
Linter fixes
1 parent a7ab8c2 commit 1a3b711

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ffi/input_pocketbook.lua

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,16 @@ end
161161
local function getMajorSoftwareVersion()
162162
-- format is $model.$major.$minor.$build, like "U743g.6.8.4143"
163163
local fwVersion = inkview.GetSoftwareVersion()
164-
164+
165165
local counter = 0
166-
166+
167167
for segment in string.gmatch(fwVersion, "[^.]+") do
168-
if counter == 1 then
169-
local major = tonumber(segment) or 0
170-
return major
171-
end
172-
173-
counter = counter + 1
168+
if counter == 1 then
169+
local major = tonumber(segment) or 0
170+
return major
171+
end
172+
173+
counter = counter + 1
174174
end
175175

176176
return 0

0 commit comments

Comments
 (0)