From 17c17d9d59947b19fe5fcc10e5bfb0e1d4b92d83 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Thu, 7 Aug 2014 15:16:12 -0700 Subject: [PATCH] Fixed a TODO that got reported by Chris Change-Id: I185ea9161f40a920d9183a33482c7d410d1d0caa --- OCLib/OCPlatform.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.7.4