Permalink
Browse files

fix mock adserver condition

  • Loading branch information...
1 parent d9466d6 commit 0cb104114e03281d7e25e2116eff7911c6285d8b @mikeburkat mikeburkat committed Jul 6, 2016
Showing with 3 additions and 5 deletions.
  1. +3 −5 rtbkit/plugins/adserver/mock_adserver_connector.cc
@@ -19,11 +19,9 @@ MockAdServerConnector(std::string const & serviceName,
const Json::Value & json) :
HttpAdServerConnector(serviceName, proxies)
{
- if (json != Json::Value::null) {
- int winPort = json.get("winPort", "12340").asInt();
- int eventPort = json.get("eventPort", "12341").asInt();
- init(winPort, eventPort);
- }
+ int winPort = json.get("winPort", "12340").asInt();
+ int eventPort = json.get("eventPort", "12341").asInt();
+ init(winPort, eventPort);
}
MockAdServerConnector::

0 comments on commit 0cb1041

Please sign in to comment.