summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2020-01-24 17:29:41 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2020-01-24 17:29:41 +0100
commitb9969c45e5a2f01e672270fab1348c81b7ff3288 (patch)
tree74ec770681405b7d6509cdf4e5f88ea99fbfe235 /src
parentba57a371402f206f6b5d8ba0a416efe5daa2b125 (diff)
Relax computation of appidicefish_8.99.5icefish/8.99.58.99.5
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 <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r--src/hs-appinfo.cpp7
1 files changed, 1 insertions, 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;
}