no need to check for nil settings

Now that we only call load_settings when needed.
This commit is contained in:
Kartik K. Agaram 2023-07-10 19:25:29 -07:00
parent 8ec74b2065
commit fd533d4b01
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
on.load_settings = function(settings)
if settings == nil then return end
Font_height = settings.font_height
Line_height = settings.line_height
for _,w in ipairs(settings.words) do
@ -9,4 +8,4 @@ on.load_settings = function(settings)
Text.redraw_all(Cursor_word)
end
Cursor_word = nil
end
end