Skip to content

Commit

Permalink
discard signal on non windows OS (linter)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Vaumoron <[email protected]>
  • Loading branch information
dvaumoron committed Jan 28, 2025
1 parent 39d5076 commit 4438408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cmdproxy/transmit_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package cmdproxy
import "os"

func transmitIncreasingSignal(signalReceiver <-chan os.Signal, _ *os.Process) {
for range signalReceiver {
for range signalReceiver { //nolint
// discard signals on non Windows OS (already send to whole process group)
}
}
2 changes: 1 addition & 1 deletion versionmanager/proxy/light/transmit_others.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package lightproxy
import "os"

func transmitSignal(signalReceiver <-chan os.Signal, _ *os.Process) {
for range signalReceiver {
for range signalReceiver { //nolint
// discard signals on non Windows OS (already send to whole process group)
}
}

0 comments on commit 4438408

Please sign in to comment.