Skip to content

Commit

Permalink
fix slices.DeleteFunc call
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Nov 23, 2023
1 parent 07408e0 commit d75962b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ebpf/btf.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (b *orderedBTFLoader) getEmbeddedBTF(platform, platformVersion, kernelVersi
for _, kvp := range kernelVersionPatterns {
if kvp.pattern.MatchString(kernelVersion) {
// remove possible paths that do not match possible platforms
slices.DeleteFunc(possiblePaths, func(s string) bool {
possiblePaths := slices.DeleteFunc(possiblePaths, func(s string) bool {
pform := strings.Split(s, string(os.PathSeparator))[0]
return !slices.Contains(kvp.platforms, pform)
})
Expand Down

0 comments on commit d75962b

Please sign in to comment.