Skip to content

Commit

Permalink
🔧 Simplify a promise in entity-manager-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
wardbell committed May 24, 2015
1 parent 79202c5 commit 757669c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entity-manager-factory.js
Expand Up @@ -7,7 +7,7 @@ var entityManager;
*/
export function createEntityManager() {
if (entityManager) {
return new Promise((resolve, reject) => resolve(copyEntityManager()));
return Promise.resolve(copyEntityManager());
}

entityManager = new breeze.EntityManager(settings.serviceName);
Expand Down

1 comment on commit 757669c

@jdanyow
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice- I'll need to make the same change here: https://github.com/jdanyow/aurelia-breeze/blob/master/src/promise-adapter.js

Please sign in to comment.