Skip to content

Commit

Permalink
Remove some unnecessary uses of Ember.A
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Nov 7, 2022
1 parent cfaf5d5 commit 4513a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@ember/debug/data-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,14 +552,14 @@ export default class DataAdapter<T> extends EmberObject {
: this._getObjectsOnNamespaces();

// New adapters return strings instead of classes.
let klassTypes = emberA(stringTypes).map((name) => {
let klassTypes = stringTypes.map((name) => {
return {
klass: this._nameToClass(name),
name,
};
});

return emberA(klassTypes).filter((type) => this.detect(type.klass));
return klassTypes.filter((type) => this.detect(type.klass));
}

/**
Expand Down

0 comments on commit 4513a24

Please sign in to comment.