mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
eslint: change no-else-return to error and fix violations
This commit is contained in:
@@ -167,9 +167,8 @@ function stringify_list_with_conjunction(lst, conjunction) {
|
||||
return lst.toString();
|
||||
} else if (lst.length === 2) {
|
||||
return lst.join(" " + conjunction + " ");
|
||||
} else {
|
||||
return lst.slice(0, lst.length-1).join(", ") + ", " + conjunction + " " + lst[lst.length-1].toString();
|
||||
}
|
||||
return lst.slice(0, lst.length-1).join(", ") + ", " + conjunction + " " + lst[lst.length-1].toString();
|
||||
}
|
||||
|
||||
exports.populate_emoji = function (emoji_data) {
|
||||
|
||||
Reference in New Issue
Block a user