From 3779a89c1eac88b9f89bb5f1606e3c24117dc771 Mon Sep 17 00:00:00 2001 From: Oscar Franco Date: Wed, 28 Aug 2024 09:28:04 -0400 Subject: [PATCH] Minor correction --- cpp/DBHostObject.h | 4 ++-- ios/OPSQLite.mm | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cpp/DBHostObject.h b/cpp/DBHostObject.h index d2cc3912..de3b9d38 100644 --- a/cpp/DBHostObject.h +++ b/cpp/DBHostObject.h @@ -31,8 +31,8 @@ class JSI_EXPORT DBHostObject : public jsi::HostObject { DBHostObject(jsi::Runtime &rt, std::string &base_path, std::shared_ptr js_call_invoker, std::shared_ptr thread_pool, std::string &db_name, - std::string &path, std::string &crsqlite_path, std::string &sqlite_vec_path, - std::string &encryption_key); + std::string &path, std::string &crsqlite_path, + std::string &sqlite_vec_path, std::string &encryption_key); #ifdef OP_SQLITE_USE_LIBSQL // Constructor for remoteOpen, purely for remote databases diff --git a/ios/OPSQLite.mm b/ios/OPSQLite.mm index 5d3c1026..f5621fd1 100644 --- a/ios/OPSQLite.mm +++ b/ios/OPSQLite.mm @@ -81,12 +81,9 @@ - (NSDictionary *)getConstants { ofType:@""]; NSBundle *libsqlitevec_bundle = [NSBundle bundleWithIdentifier:@"com.ospfranco.sqlitevec"]; - NSString *sqlite_vec_path = - [libsqlitevec_bundle pathForResource:@"sqlitevec" ofType:@""]; + NSString *sqlite_vec_path = [libsqlitevec_bundle pathForResource:@"sqlitevec" + ofType:@""]; - -// NSString *sqlite_vec_path = @""; - if (crsqlite_path == nil) { crsqlite_path = @""; }