Skip to content

Commit 7276e8d

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//nolint:typecheck // BlockIptablesObjects is part of generated code
12
package bpfprogram
23

34
import (
@@ -21,7 +22,6 @@ const (
2122

2223
// Program implements the Manager interface for real BPF program operations.
2324
type Program struct {
24-
//nolint:typecheck // BlockIptablesObjects is part of generated code
2525
objs *blockservice.BlockIptablesObjects
2626
links []link.Link
2727
attached bool
@@ -102,7 +102,6 @@ func (p *Program) Attach() error {
102102
}
103103

104104
// Load BPF objects with the host namespace inode set
105-
//nolint:typecheck // LoadBlockIptables is part of generated code
106105
spec, err := blockservice.LoadBlockIptables()
107106
if err != nil {
108107
return fmt.Errorf("failed to load BPF spec: %w", err)
@@ -117,7 +116,6 @@ func (p *Program) Attach() error {
117116
}
118117

119118
// Load the objects
120-
//nolint:typecheck // BlockIptablesObjects is part of generated code
121119
objs := &blockservice.BlockIptablesObjects{}
122120
options := &ebpf.CollectionOptions{
123121
Maps: ebpf.MapOptions{

0 commit comments

Comments
 (0)