DEV: lint files

This commit is contained in:
Sam Saffron 2019-11-14 11:52:29 +11:00
parent e7226a8c84
commit 03efbad932
3 changed files with 9 additions and 3 deletions

View File

@ -84,7 +84,9 @@ const controllerOpts = {
resetNew() {
this.topicTrackingState.resetNew();
Topic.resetNew(this.category, !this.noSubcategories).then(() => this.send("refresh"));
Topic.resetNew(this.category, !this.noSubcategories).then(() =>
this.send("refresh")
);
},
dismissReadPosts() {

View File

@ -766,7 +766,9 @@ Topic.reopenClass({
},
resetNew(category, include_subcategories) {
const data = category ? { category_id: category.id, include_subcategories } : {};
const data = category
? { category_id: category.id, include_subcategories }
: {};
return ajax("/topics/reset-new", { type: "PUT", data });
},

View File

@ -54,7 +54,9 @@ createWidget("search-context", {
if (ctx) {
const description = searchContextDescription(
get(ctx, "type"),
get(ctx, "user.username") || get(ctx, "category.name") || get(ctx, "tag.id")
get(ctx, "user.username") ||
get(ctx, "category.name") ||
get(ctx, "tag.id")
);
result.push(
h("label", [