cleanup some code

This commit is contained in:
djmaze 2020-10-02 12:40:33 +02:00
parent e566494a87
commit cb2048f163
14 changed files with 32 additions and 117 deletions

View file

@ -18,9 +18,7 @@ export class AbstractModel {
regDisposables(value) {
if (Array.isArray(value)) {
value.forEach((item) => {
this.disposables.push(item);
});
value.forEach(item => this.disposables.push(item));
} else if (value) {
this.disposables.push(value);
}