Skip to content

Commit a038cc7

Browse files
josedonizettirafaeldtinoco
authored andcommitted
refactor: remove not used return argument
Signed-off-by: Jose Donizetti <[email protected]>
1 parent 913c2a7 commit a038cc7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/ebpf/tracee.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ func (t *Tracee) updateFileSHA() {
11351135

11361136
func (t *Tracee) invokeInitEvents() {
11371137
if t.events[events.InitNamespaces].emit {
1138-
systemInfoEvent, _ := events.InitNamespacesEvent()
1138+
systemInfoEvent := events.InitNamespacesEvent()
11391139
t.config.ChanEvents <- systemInfoEvent
11401140
t.stats.EventCount.Increment()
11411141
}

pkg/events/usermode.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
const InitProcNsDir = "/proc/1/ns"
2626

2727
// InitNamespacesEvent collect the init process namespaces and create event from them.
28-
func InitNamespacesEvent() (trace.Event, error) {
28+
func InitNamespacesEvent() trace.Event {
2929
initNamespacesDef := Definitions.Get(InitNamespaces)
3030
initNamespacesArgs := getInitNamespaceArguments()
3131
initNamespacesEvent := trace.Event{
@@ -36,7 +36,7 @@ func InitNamespacesEvent() (trace.Event, error) {
3636
ArgsNum: len(initNamespacesArgs),
3737
Args: initNamespacesArgs,
3838
}
39-
return initNamespacesEvent, nil
39+
return initNamespacesEvent
4040
}
4141

4242
// getInitNamespaceArguments Fetch the namespaces of the init process and parse them into event arguments.

0 commit comments

Comments
 (0)