Skip to content

Commit a2d0e4e

Browse files
committed
Remove semicolons at end of lines in pd.lua
1 parent 696d227 commit a2d0e4e

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pd.lua

+9-9
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ end
9595
pd._repaint = function (object)
9696
local obj = pd._objects[object]
9797
if nil ~= obj and type(obj.repaint) == "function" then
98-
obj:repaint(0);
98+
obj:repaint(0)
9999
end
100100
end
101101

@@ -471,7 +471,7 @@ function pd.Class:repaint(layer)
471471
local paint_layer_method = "paint_layer_" .. tostring(i)
472472
if type(self[paint_layer_method]) == "function" then
473473
table.insert(paint_funcs, self[paint_layer_method])
474-
i = i + 1;
474+
i = i + 1
475475
else
476476
break -- Exit the loop when no more paint_layer_X methods are found
477477
end
@@ -480,21 +480,21 @@ function pd.Class:repaint(layer)
480480
-- repaint all
481481
if layer == nil or layer == 0 then
482482
for i, paint_fn in ipairs(paint_funcs) do
483-
local g = _gfx_internal.start_paint(self._object, i);
483+
local g = _gfx_internal.start_paint(self._object, i)
484484
if type(paint_fn) == "function" and g ~= nil then
485-
paint_fn(self, g);
486-
_gfx_internal.end_paint(g, i);
485+
paint_fn(self, g)
486+
_gfx_internal.end_paint(g, i)
487487
else
488-
break;
488+
break
489489
end
490490
end
491491
-- repaint only chosen index
492492
elseif layer <= #paint_funcs then
493-
local g = _gfx_internal.start_paint(self._object, layer);
493+
local g = _gfx_internal.start_paint(self._object, layer)
494494
local paint_fn = paint_funcs[layer]
495495
if type(paint_fn) == "function" and g ~= nil then
496-
paint_fn(self, g);
497-
_gfx_internal.end_paint(g, layer);
496+
paint_fn(self, g)
497+
_gfx_internal.end_paint(g, layer)
498498
end
499499
end
500500
end

0 commit comments

Comments
 (0)