Skip to content
Snippets Groups Projects
Commit 2b279275 authored by Arkerthan's avatar Arkerthan
Browse files

remove redundant else

parent 9a34492d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment