Skip to content

Commit abbabaf

Browse files
committed
Remove unreachable code (per Coveralls)
This condition was never reached. Apart from code coverage, it's clear that an exception would not be thrown before this point since only libmongoc functions are called.
1 parent f8dee7d commit abbabaf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

php_phongo.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -755,12 +755,6 @@ bool phongo_execute_bulk_write(mongoc_client_t* client, const char* namespace, p
755755
return true;
756756
}
757757

758-
/* Check for connection related exceptions */
759-
if (EG(exception)) {
760-
bson_destroy(&reply);
761-
return false;
762-
}
763-
764758
writeresult = phongo_writeresult_init(return_value, &reply, client, mongoc_bulk_operation_get_hint(bulk) TSRMLS_CC);
765759
writeresult->write_concern = mongoc_write_concern_copy(write_concern);
766760

0 commit comments

Comments
 (0)