mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-22 19:28:33 +00:00
Reduce the scope of a variable
This commit is contained in:
parent
0ec8809647
commit
5f5e2822e2
@ -355,8 +355,7 @@ bool Realm::refresh()
|
||||
|
||||
uint64_t Realm::get_schema_version(const realm::Realm::Config &config)
|
||||
{
|
||||
auto existing_realm = s_global_cache.get_any_realm(config.path);
|
||||
if (existing_realm) {
|
||||
if (auto existing_realm = s_global_cache.get_any_realm(config.path)) {
|
||||
return existing_realm->config().schema_version;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user