Skip to content

Commit

Permalink
Fix C++
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Oct 23, 2024
1 parent 26bffaf commit 9640a74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ void install(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker,
std::string url = options.getProperty(rt, "url").asString(rt).utf8(rt);
std::string auth_token =
options.getProperty(rt, "authToken").asString(rt).utf8(rt);
int sync_interval = 0 if (options.hasProperty(rt, "syncInterval")) {
int sync_interval = 0;
if (options.hasProperty(rt, "syncInterval")) {
sync_interval =
static_cast<int>(options.getProperty(rt, "syncInterval").asNumber());
}
Expand Down

0 comments on commit 9640a74

Please sign in to comment.