remove redundant null check

This commit is contained in:
Michael Scire 2019-04-24 03:18:51 -07:00
parent b5a7963a81
commit 495cd03c2c

View File

@ -124,7 +124,7 @@ class MitmSession final : public ServiceSession {
case DomainMessageType_Close: case DomainMessageType_Close:
{ {
auto sub_obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId); auto sub_obj = ctx->obj_holder->GetServiceObject<IDomainObject>()->GetObject(ctx->request.InThisObjectId);
if (sub_obj == nullptr || (!sub_obj)) { if (sub_obj == nullptr) {
rc = ForwardRequest(ctx); rc = ForwardRequest(ctx);
return rc; return rc;
} }