From af4a699e19d8166f11a86f67f7d8a27a930314c4 Mon Sep 17 00:00:00 2001 From: David Leal Date: Sun, 24 Jan 2021 03:42:01 -0600 Subject: [PATCH] Fix LuaCheck warning (#69) --- lcd.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lcd.lua b/lcd.lua index 456a69b..cbff46b 100644 --- a/lcd.lua +++ b/lcd.lua @@ -84,9 +84,8 @@ local create_lines = function(text) line = word end else - if word == " " then - -- don't add the space since we have a line break - else + -- don't add the space since we have a line break + if word ~= " " then if line_len > 0 then -- ok, we need the new line if flush_line_and_check_for_return() then return tab end