simplified tsqlite_connection_close

This commit is contained in:
2025-12-15 15:31:11 +05:00
parent 3a528c00c2
commit ac4f33be1b
3 changed files with 7 additions and 22 deletions

View File

@@ -7,9 +7,8 @@ Result(tsqlite_connection*) tsqlite_connection_open(cstr file_path)
return RESULT_VALUE(p, self);
}
Result(void) tsqlite_connection_close(tsqlite_connection* self){
void tsqlite_connection_close(tsqlite_connection* self){
if(!self)
return RESULT_VOID;
try_sqlite3(self, sqlite3_close(self));
return RESULT_VOID;
return;
sqlite3_close_v2(self);
}