Skip to content

Commit 9ed6fae

Browse files
committed
sqlite: remove unnecessary trycatch
Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
1 parent c5d88bb commit 9ed6fae

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/node_sqlite.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,11 +2609,9 @@ void StatementSync::Close(const FunctionCallbackInfo<Value>& args) {
26092609
}
26102610

26112611
void StatementSync::Dispose(const FunctionCallbackInfo<Value>& args) {
2612-
v8::TryCatch try_catch(args.GetIsolate());
2613-
Close(args);
2614-
if (try_catch.HasCaught()) {
2615-
CHECK(try_catch.CanContinue());
2616-
}
2612+
StatementSync* stmt;
2613+
ASSIGN_OR_RETURN_UNWRAP(&stmt, args.This());
2614+
stmt->Close();
26172615
}
26182616

26192617
inline int StatementSync::ResetStatement() {

0 commit comments

Comments
 (0)