1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-26 15:32:17 +00:00

Remove redundant condition in io.read

This commit is contained in:
Jonathan Coates 2025-01-05 23:02:16 +00:00
parent 2ba6d5815b
commit ad74893058
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -147,7 +147,7 @@ handleMetatable = {
if format == "l" then if format == "l" then
if handle.readLine then res = handle.readLine() end if handle.readLine then res = handle.readLine() end
elseif format == "L" and handle.readLine then elseif format == "L" then
if handle.readLine then res = handle.readLine(true) end if handle.readLine then res = handle.readLine(true) end
elseif format == "a" then elseif format == "a" then
if handle.readAll then res = handle.readAll() or "" end if handle.readAll then res = handle.readAll() or "" end