Fixing merge
This commit is contained in:
parent
1184fc2c0b
commit
616f5d79e6
|
@ -415,7 +415,7 @@ void RealmClass<T>::constructor(ContextType ctx, ObjectType this_object, size_t
|
|||
static const String compact_on_launch_string = "shouldCompactOnLaunch";
|
||||
ValueType compact_value = Object::get_property(ctx, object, compact_on_launch_string);
|
||||
if (!Value::is_undefined(ctx, compact_value)) {
|
||||
if (config.schema_mode == SchemaMode::ReadOnly) {
|
||||
if (config.schema_mode == SchemaMode::Immutable) {
|
||||
throw std::invalid_argument("Cannot set 'shouldCompactOnLaunch' when 'readOnly' is set.");
|
||||
}
|
||||
if (config.sync_config) {
|
||||
|
@ -654,7 +654,6 @@ void RealmClass<T>::wait_for_download_completion(ContextType ctx, FunctionType,
|
|||
}
|
||||
|
||||
#if REALM_ENABLE_SYNC
|
||||
auto config_object = Value::validated_to_object(ctx, arguments[0]);
|
||||
ValueType sync_config_value = Object::get_property(ctx, config_object, "sync");
|
||||
if (!Value::is_undefined(ctx, sync_config_value)) {
|
||||
realm::Realm::Config config;
|
||||
|
|
Loading…
Reference in New Issue