Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
Fix unused parameter warnings of the revive linter.

Signed-off-by: hwipl <[email protected]>
  • Loading branch information
hwipl committed Apr 8, 2024
1 parent 9f75b17 commit 4746aa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/cpd/cpd.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (c *CPD) check() *Report {
// send http request
client := &http.Client{
Timeout: c.config.HTTPTimeout,
CheckRedirect: func(req *http.Request, via []*http.Request) error {
CheckRedirect: func(*http.Request, []*http.Request) error {
return http.ErrUseLastResponse
},
}
Expand Down
2 changes: 1 addition & 1 deletion internal/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ func (d *Daemon) setTNDDialer() {
}

// control function that sets socket option on raw connection
control := func(network, address string, c syscall.RawConn) error {
control := func(_, _ string, c syscall.RawConn) error {
// set socket option function for setting mark with SO_MARK
var soerr error
setsockopt := func(fd uintptr) {
Expand Down

0 comments on commit 4746aa5

Please sign in to comment.