diff --git a/source/RobotAPI/libraries/skills/manager/SkillManagerComponentPlugin.cpp b/source/RobotAPI/libraries/skills/manager/SkillManagerComponentPlugin.cpp index 06ffe161de696137517ead9c740e276c1058ff35..fb11ced49adb07da25f268780f4b3b80936eff7c 100644 --- a/source/RobotAPI/libraries/skills/manager/SkillManagerComponentPlugin.cpp +++ b/source/RobotAPI/libraries/skills/manager/SkillManagerComponentPlugin.cpp @@ -931,12 +931,10 @@ namespace armarx::plugins const auto& skillsEntry = fluxioDC.skills.find(id); if (skillsEntry != fluxioDC.skills.end()) { - skills::Result<skills::FluxioSkill, skills::error::SkillException> result(skillsEntry->second); - return result; + return {skillsEntry->second}; } - skills::Result<skills::FluxioSkill, skills::error::SkillException> - result(skills::error::SkillNotFoundException("Skill not found", "Reason: ")); - return result; + return {skills::error::SkillNotFoundException("Skill not found", "Reason: ")}; + //return result; } void