Merge lines.love
This commit is contained in:
commit
5021298090
2
file.lua
2
file.lua
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue