Skip to content

Commit 0e369c6

Browse files
fix: nolint for generated code
1 parent fd161cc commit 0e369c6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpf-prog/block-iptables/pkg/bpfprogram/program.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const (
2121

2222
// Program implements the Manager interface for real BPF program operations.
2323
type Program struct {
24+
//nolint:typecheck // BlockIptablesObjects is part of generated code
2425
objs *blockservice.BlockIptablesObjects
2526
links []link.Link
2627
attached bool
@@ -101,6 +102,7 @@ func (p *Program) Attach() error {
101102
}
102103

103104
// Load BPF objects with the host namespace inode set
105+
//nolint:typecheck // LoadBlockIptables is part of generated code
104106
spec, err := blockservice.LoadBlockIptables()
105107
if err != nil {
106108
return fmt.Errorf("failed to load BPF spec: %w", err)
@@ -115,6 +117,7 @@ func (p *Program) Attach() error {
115117
}
116118

117119
// Load the objects
120+
//nolint:typecheck // BlockIptablesObjects is part of generated code
118121
objs := &blockservice.BlockIptablesObjects{}
119122
options := &ebpf.CollectionOptions{
120123
Maps: ebpf.MapOptions{

0 commit comments

Comments
 (0)