Skip to content

Commit c787428

Browse files
authored
env pointer checking removed
1 parent 6178b2c commit c787428

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_sqlite.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ inline void THROW_ERR_SQLITE_ERROR(Isolate* isolate, int errcode) {
252252

253253
Environment* env = Environment::GetCurrent(isolate);
254254
Local<Object> error;
255-
if (env && CreateSQLiteError(isolate, errstr).ToLocal(&error) &&
255+
if (CreateSQLiteError(isolate, errstr).ToLocal(&error) &&
256256
error
257257
->Set(isolate->GetCurrentContext(),
258258
env->errcode_string(),

0 commit comments

Comments
 (0)