Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify access to the EntityStore #7

Open
kerbymart opened this issue Feb 28, 2024 · 0 comments
Open

Simplify access to the EntityStore #7

kerbymart opened this issue Feb 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@kerbymart
Copy link
Member

Accessing the EntityStore should be made simpler by eliminating the redundant getInstance method call:

EntityStore entityStore 
    = isClientMode ? DataFactoryClient.getInstance().getEntityStore() 
          : DataFactory.getInstance().getEntityStore();

It should be straightforward and easy to understand, like something that requires little effort to comprehend:

EntityStore entityStore 
    = isClientMode ? DataFactoryClient.getEntityStore() 
          : DataFactory.getEntityStore();
@kerbymart kerbymart added the enhancement New feature or request label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant