From c2a5d2517a76d02dd689f0aec6b96e95c4f70294 Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sat, 20 Apr 2024 12:01:39 +0100 Subject: [PATCH] kbmulti: remove unnecessary `if` --- apps/kbmulti/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/kbmulti/lib.js b/apps/kbmulti/lib.js index 84598b52d..7e526a774 100644 --- a/apps/kbmulti/lib.js +++ b/apps/kbmulti/lib.js @@ -76,7 +76,7 @@ exports.input = function(options) { deactivateTimeout(charTimeout); if (textIndex > -1){ text = text.slice(0, textIndex) + text.slice(textIndex + 1); - if (textIndex > -1) textIndex --; + textIndex--; newCharacter(); } }