Readability fixes

This commit is contained in:
Paul Schaub 2019-12-13 11:39:35 +01:00
parent 7f2fe135b3
commit ce1152f0d6
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 2 additions and 6 deletions

View File

@ -29,16 +29,12 @@ public class AndroidPersistenceModule {
@Singleton
static ReactiveEntityStore<Persistable> provideDatabase(Application application) {
// override onUpgrade to handle migrating to a new version
DatabaseSource source = new DatabaseSource(application, Models.DEFAULT,
"mercury_req_db", 1);
DatabaseSource source = new DatabaseSource(application, Models.DEFAULT, "mercury_req_db", 1);
if (BuildConfig.DEBUG) {
// use this in development mode to drop and recreate the tables on every upgrade
source.setTableCreationMode(TableCreationMode.DROP_CREATE);
}
Configuration configuration = source.getConfiguration();
ReactiveEntityStore<Persistable> dataStore = ReactiveSupport.toReactiveStore(
new EntityDataStore<>(configuration));
return dataStore;
return ReactiveSupport.toReactiveStore(new EntityDataStore<>(configuration));
}
@Provides