Skip to content

Commit

Permalink
fix: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
a3828162 committed Apr 17, 2024
1 parent 49fe1a0 commit a87748b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/nwucp/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func init() {
func Run() error {
n3ueSelf := context.N3UESelf()

var errChan = make(chan error)
errChan := make(chan error)

go serveConn(n3ueSelf, errChan)
if err, ok := <-errChan; ok {
Expand Down
2 changes: 1 addition & 1 deletion pkg/ike/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func Run() error {
}

// Listen and serve
var errChan = make(chan error)
errChan := make(chan error)

go listenAndServe(udpAddr, errChan)
if err, ok := <-errChan; ok {
Expand Down

0 comments on commit a87748b

Please sign in to comment.