Relax computation of appid
[apps/agl-service-homescreen.git] / src / hs-appinfo.cpp
index 6b22265..9ccd660 100644 (file)
@@ -418,12 +418,7 @@ std::string HS_AppInfo::id2appid(const std::string &id) const
 {
     std::string appid;
     std::size_t pos = id.find("@");
-    if(pos != std::string::npos) {
-        appid = id.substr(0,pos);
-    }
-    else {
-        AFB_WARNING("input id error.");
-    }
+    appid = id.substr(0,pos);
     return appid;
 }