This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  33cd156   TS-4815 - CID 1267839 dead code in 
/mgmt/api/CfgContextManager.cc: return TS_ERR_PARAMS;
33cd156 is described below

commit 33cd1569b536611f9b844ebc276edcb03ffb24c3
Author: Nathan Garabedian <[email protected]>
AuthorDate: Wed Sep 21 13:01:30 2016 -0700

    TS-4815 - CID 1267839 dead code in /mgmt/api/CfgContextManager.cc: return 
TS_ERR_PARAMS;
---
 mgmt/api/CfgContextManager.cc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/mgmt/api/CfgContextManager.cc b/mgmt/api/CfgContextManager.cc
index dec252e..fc013e6 100644
--- a/mgmt/api/CfgContextManager.cc
+++ b/mgmt/api/CfgContextManager.cc
@@ -162,10 +162,7 @@ CfgContextGet(CfgContext *ctx)
   RuleList *rule_list = NULL;
   CfgEleObj *ele      = NULL;
 
-  ink_assert(ctx);
-  if (!ctx) {
-    return TS_ERR_PARAMS;
-  }
+  ink_release_assert(ctx);
 
   // get copy of the file
   ret = ReadFile(ctx->getFilename(), &old_text, &size, &ver);

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to