Skip to content

Commit 298b671

Browse files
FedeDPpoiana
authored andcommitted
chore(plugins/container): avoid useless req.set_value of empty string.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent 6e458f9 commit 298b671

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

plugins/container/src/caps/extract/extract.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,6 @@ bool my_plugin::extract(const falcosecurity::extract_fields_input &in)
612612
{
613613
// Can't return anything but those fields without containers
614614
// metadata.
615-
616-
// Set an empty extracted value to let `return true` below work
617-
// See
618-
// https://github.com/falcosecurity/libs/blob/0d94d2bc55d4ccde870bc0c076423a1e13814079/userspace/libsinsp/plugin_filtercheck.cpp#L172
619-
req.set_value("");
620615
return true; // go on to extract other fields if needed, perhaps
621616
// they'll be one of the above
622617
}

0 commit comments

Comments
 (0)