Merge text0

This commit is contained in:
Kartik K. Agaram 2023-08-31 00:20:30 -07:00
commit f2eb3b7302
1 changed files with 1 additions and 1 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