From b9969c45e5a2f01e672270fab1348c81b7ff3288 Mon Sep 17 00:00:00 2001 From: José Bollo Date: Fri, 24 Jan 2020 17:29:41 +0100 Subject: Relax computation of appid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The returned appid is now either the part up to the first @ or the entire string if no @ is present. This evolution is needed to able the removal of handling different versions. Bug-AGL: SPEC-2538 Change-Id: Ibe8cfbb60333702ba33d59d3e89f33688d2a0f51 Signed-off-by: José Bollo --- src/hs-appinfo.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/hs-appinfo.cpp b/src/hs-appinfo.cpp index 6b22265..9ccd660 100644 --- a/src/hs-appinfo.cpp +++ b/src/hs-appinfo.cpp @@ -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; } -- cgit 1.2.3-korg