Fixed a TODO that got reported by Chris
authorErich Keane <erich.keane@intel.com>
Thu, 7 Aug 2014 22:16:12 +0000 (15:16 -0700)
committerErich Keane <erich.keane@intel.com>
Thu, 7 Aug 2014 22:33:50 +0000 (15:33 -0700)
Change-Id: I185ea9161f40a920d9183a33482c7d410d1d0caa

OCLib/OCPlatform.cpp

index c936f13..dae4a2b 100644 (file)
@@ -93,15 +93,12 @@ namespace OC
     OCStackResult OCPlatform::findResource(const std::string& host, const std::string& resourceName, 
         std::function<void(OCResource::Ptr)> 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;
     }