Fix linter errors

This commit is contained in:
Daniel
2023-04-25 14:37:29 +02:00
parent 34e035858d
commit 5bb2813459
14 changed files with 17 additions and 14 deletions

View File

@@ -149,7 +149,7 @@ func authenticateAPIRequest(ctx context.Context, pktInfo *packet.Info) (retry bo
originalPid = proc.Pid
var previousPid int
// Go up up to two levels, if we don't match the path.
// Find parent for up to two levels, if we don't match the path.
checkLevels := 2
checkLevelsLoop:
for i := 0; i < checkLevels+1; i++ {

View File

@@ -90,7 +90,7 @@ func New(qid uint16, v6 bool) (*Queue, error) { //nolint:gocognit
return q, nil
}
// open opens a new netlink socket and and creates a new nfqueue.
// open opens a new netlink socket and creates a new nfqueue.
// Upon success, the new nfqueue is atomically stored in Queue.nf.
// Users must use Queue.getNfq to access it. open does not care about
// any other value or queue that might be stored in Queue.nf at

View File

@@ -135,7 +135,7 @@ func createPrompt(ctx context.Context, conn *network.Connection) (n *notificatio
n.Unlock()
// If the notification is still active, extend and return.
// This can can happen because user input (prompts changing the endpoint
// This can happen because user input (prompts changing the endpoint
// lists) can happen any time - also between checking the endpoint lists
// and now.
if state == notifications.Active {