Removed empty init() calls

no issue

- `init()` methods that do nothing but call `super()` aren't adding anything but add noise to class/object definitions
This commit is contained in:
Kevin Ansfield 2021-03-29 10:32:03 +01:00
parent 65e07109a9
commit ae4d15d237
5 changed files with 0 additions and 20 deletions

View File

@ -19,10 +19,6 @@ export default ModalComponent.extend(ValidationEngine, {
validationType: 'inviteUser',
init() {
this._super(...arguments);
},
didInsertElement() {
this._super(...arguments);
this.fetchRoles.perform();

View File

@ -13,10 +13,6 @@ export default ModalComponent.extend({
confirm() {},
label: computed.and('model', 'model.label'),
init() {
this._super(...arguments);
},
willDestroyElement() {
this._super(...arguments);
this.label.errors.clear();

View File

@ -32,10 +32,6 @@ export default Controller.extend({
_scratchFacebook: null,
_scratchTwitter: null,
init() {
this._super(...arguments);
},
privateRSSUrl: computed('config.blogUrl', 'settings.publicHash', function () {
let blogUrl = this.get('config.blogUrl');
let publicHash = this.get('settings.publicHash');

View File

@ -30,10 +30,6 @@ export default Controller.extend({
yamlAccept: null,
init() {
this._super(...arguments);
},
fromAddress: computed(function () {
return this.parseEmailAddress(this.settings.get('membersFromAddress'));
}),

View File

@ -27,10 +27,6 @@ export default Controller.extend({
yamlAccept: null,
init() {
this._super(...arguments);
},
blogDomain: computed('config.blogDomain', function () {
let blogDomain = this.config.blogDomain || '';
const domainExp = blogDomain.replace('https://', '').replace('http://', '').match(new RegExp('^([^/:?#]+)(?:[/:?#]|$)', 'i'));