diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-08-09 21:03:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 21:03:18 +0200 |
commit | eefa39e47b4ef1f6a51854461efee99777ae20fd (patch) | |
tree | c6c873eb7c8b3fa2da78115b4b98e9bd5e7d0144 /builtin/game | |
parent | 1ab29f1716e51bccd405e6f6e04bad64712cc018 (diff) | |
download | minetest-eefa39e47b4ef1f6a51854461efee99777ae20fd.tar.gz minetest-eefa39e47b4ef1f6a51854461efee99777ae20fd.tar.bz2 minetest-eefa39e47b4ef1f6a51854461efee99777ae20fd.zip |
Remove statement semicolons from a lua script
Diffstat (limited to 'builtin/game')
-rw-r--r-- | builtin/game/misc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua index cee95dd23..aac6c2d18 100644 --- a/builtin/game/misc.lua +++ b/builtin/game/misc.lua @@ -303,13 +303,13 @@ function core.encode_png(width, height, data, compression) error("Incorrect type for 'height', expected number, got " .. type(height)) end - local expected_byte_count = width * height * 4; + local expected_byte_count = width * height * 4 if type(data) ~= "table" and type(data) ~= "string" then - error("Incorrect type for 'height', expected table or string, got " .. type(height)); + error("Incorrect type for 'height', expected table or string, got " .. type(height)) end - local data_length = type(data) == "table" and #data * 4 or string.len(data); + local data_length = type(data) == "table" and #data * 4 or string.len(data) if data_length ~= expected_byte_count then error(string.format( |