Skip to content

Commit

Permalink
refactor: remove the last of isError from input
Browse files Browse the repository at this point in the history
  • Loading branch information
aldum committed Dec 8, 2023
1 parent 7495e0e commit 0aef656
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/view/inputView.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ function InputView:draw(input, time)
end

local drawBackground = function()
if isError then
G.setColor(colors.input.error_bg)
else
G.setColor(colors.input.bg)
end
G.setColor(colors.input.bg)
G.rectangle("fill",
b,
start_y,
Expand Down

0 comments on commit 0aef656

Please sign in to comment.