Merge lines.love

This commit is contained in:
Kartik K. Agaram 2023-08-31 00:13:43 -07:00
commit 5021298090
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ end
function save_to_disk(State)
local outfile = App.open_for_writing(State.filename)
if outfile == nil then
if not outfile then
error('failed to write to "'..State.filename..'"')
end
for _,line in ipairs(State.lines) do

View File

@ -45,7 +45,7 @@ end
function save_to_disk(State)
local outfile = App.open_for_writing(App.save_dir..State.filename)
if outfile == nil then
if not outfile then
error('failed to write to "'..State.filename..'"')
end
for _,line in ipairs(State.lines) do