Skip to content
Snippets Groups Projects
Commit 63a167db authored by Arkerthan's avatar Arkerthan
Browse files

remove redundant else

parent c9b82e9f
No related branches found
No related tags found
No related merge requests found
...@@ -163,11 +163,10 @@ function assembleList(items) { ...@@ -163,11 +163,10 @@ function assembleList(items) {
return "none"; return "none";
} else if (items.length === 1) { } else if (items.length === 1) {
return items[0]; return items[0];
} else {
const last = items.pop();
let r = items.join(", ");
return `${r} and ${last}`;
} }
const last = items.pop();
let r = items.join(", ");
return `${r} and ${last}`;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment