From: Erich Keane Date: Thu, 7 Aug 2014 22:16:12 +0000 (-0700) Subject: Fixed a TODO that got reported by Chris X-Git-Tag: M1-RC1~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=17c17d9d59947b19fe5fcc10e5bfb0e1d4b92d83;p=contrib%2Fiotivity.git Fixed a TODO that got reported by Chris Change-Id: I185ea9161f40a920d9183a33482c7d410d1d0caa --- diff --git a/OCLib/OCPlatform.cpp b/OCLib/OCPlatform.cpp index c936f13..dae4a2b 100644 --- a/OCLib/OCPlatform.cpp +++ b/OCLib/OCPlatform.cpp @@ -93,15 +93,12 @@ namespace OC OCStackResult OCPlatform::findResource(const std::string& host, const std::string& resourceName, std::function resourceHandler) { - OCStackResult result = OC_STACK_OK; - if(m_client) { - // TODO this should return - m_client->ListenForResource(host, resourceName, resourceHandler); + return m_client->ListenForResource(host, resourceName, resourceHandler); } - return result; + return OC_STACK_ERROR; }