From 2b279275debf36c69d70c2c1aa72c30a03d17d78 Mon Sep 17 00:00:00 2001 From: Arkerthan <arkerthan@gmail.com> Date: Tue, 18 Feb 2020 21:35:15 +0100 Subject: [PATCH] remove redundant else --- js/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/utils.js b/js/utils.js index 4e7aa208c1e..1be1b953680 100644 --- a/js/utils.js +++ b/js/utils.js @@ -163,7 +163,8 @@ function addA(word) { function listArray(items, delimiter = ", ", lastDelimiter = " and ") { if (items.length === 0) { return "none"; - } else if (items.length === 1) { + } + if (items.length === 1) { return items[0]; } const last = items.pop(); -- GitLab