Skip to content

Commit 5eb8f0e

Browse files
committed
fix: Inverted logic in del_injection() — deletion never works
1 parent 9e05875 commit 5eb8f0e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

include/robotkernel/process_data.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ class pd_injection_base
180180
* \param[in] field_name Entry to inject.
181181
*/
182182
void del_injection(const std::string& field_name) {
183-
if (pd_injections.find(field_name) != pd_injections.end())
184-
return;
185-
186183
pd_injections.erase(field_name);
187184
}
188185

0 commit comments

Comments
 (0)