DEV: Fix "no-setter-return" lint (#24585)

This commit is contained in:
Jarek Radosz 2023-11-28 10:49:49 +01:00 committed by GitHub
parent cfa7dcaf0a
commit 22210a9c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 4 additions and 13 deletions

View File

@ -69,7 +69,6 @@ export default class AdminThemeEditor extends Component {
set activeSection(value) {
this.theme.setField(this.currentTargetName, this.fieldName, value);
return value;
}
@discourseComputed("maximized")

View File

@ -30,7 +30,6 @@ export default class EmailStylesEditor extends Component {
set editorContents(value) {
this.styles.setField(this.fieldName, value);
return value;
}
@action

View File

@ -28,6 +28,5 @@ export default class EmbeddingSetting extends Component {
set checked(value) {
this.set("value", value);
return value;
}
}

View File

@ -13,6 +13,5 @@ export default class Bool extends Component {
set enabled(value) {
this.set("value", value ? "true" : "false");
return value;
}
}

View File

@ -23,7 +23,7 @@ export default class WebhookEventChooser extends Component {
// add an association when not exists
if (value === this.eventTypeExists) {
return value;
return;
}
if (value) {
@ -33,7 +33,5 @@ export default class WebhookEventChooser extends Component {
eventTypes.filter((eventType) => eventType.name === this.args.type.name)
);
}
return value;
}
}

View File

@ -19,7 +19,6 @@ export default class ApiKey extends RestModel {
} else {
this.set("_user", value);
}
return this._user;
}
@discourseComputed("description")

View File

@ -198,7 +198,7 @@ const Topic = RestModel.extend({
},
set details(value) {
return (this._details = value);
this._details = value;
},
@discourseComputed("visible")

View File

@ -160,7 +160,7 @@ export default class ComposerService extends Service {
}
set disableSubmit(value) {
return this.set("_disableSubmit", value);
this.set("_disableSubmit", value);
}
@computed("model.category", "skipFormTemplate")
@ -188,7 +188,7 @@ export default class ComposerService extends Service {
}
set formTemplateInitialValues(values) {
return this.set("_formTemplateInitialValues", values);
this.set("_formTemplateInitialValues", values);
}
@action
@ -265,7 +265,6 @@ export default class ComposerService extends Service {
key: "toolbar-enabled",
value: val ? "true" : "false",
});
return val;
}
@discourseComputed("model.canEditTitle", "model.creatingPrivateMessage")

View File

@ -134,7 +134,6 @@ export default class ChatMessage {
set deletedAt(value) {
this._deletedAt = value;
this.incrementVersion();
return this._deletedAt;
}
get cooked() {