Skip to content

Commit

Permalink
chore: Arrow function for BaseCollectionStore._findInCollection
Browse files Browse the repository at this point in the history
A BIT more in line with the rest
  • Loading branch information
kachnitel committed Dec 31, 2019
1 parent 0043967 commit 976b5ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stores/BaseCollectionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,5 @@ export class BaseCollectionStore {
})
}

_findInCollection (id) {
return this._collection.find(entity => entity.id === id)
}
_findInCollection = (id) => this._collection.find(entity => entity.id === id)
}

0 comments on commit 976b5ca

Please sign in to comment.