eslint: change no-else-return to error and fix violations

This commit is contained in:
AZtheAsian
2016-12-02 13:34:35 -07:00
committed by Tim Abbott
parent d8636980ae
commit 9c0ebc7359
23 changed files with 108 additions and 149 deletions

View File

@@ -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) {