REFACTOR: removes various assignments and superfluous params (#9699)

This commit is contained in:
Joffrey JAFFEUX
2020-05-08 09:19:48 +02:00
committed by GitHub
parent 9d172eeaa5
commit 00a038d646
6 changed files with 5 additions and 7 deletions
@@ -452,14 +452,13 @@ const TopicTrackingState = EmberObject.extend({
}
let categoryId = category ? get(category, "id") : null;
let categoryName = category ? get(category, "name") : null;
if (name === "new") {
return this.countNew(categoryId);
} else if (name === "unread") {
return this.countUnread(categoryId);
} else {
categoryName = name.split("/")[1];
const categoryName = name.split("/")[1];
if (categoryName) {
return this.countCategory(categoryId);
}