Skip to content

Commit

Permalink
fix: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Sep 11, 2023
1 parent 92f8f1e commit a7cd3d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,3 @@ func main() {

This project is under MIT License. See the [LICENSE](LICENSE) file for the full license text.

## Donation

if package help you a lot,you can support us by:

**Alipay**

![alipay](https://github.com/thinkgos/thinkgos/blob/master/asserts/alipay.jpg)

**WeChat Pay**

![wxpay](https://github.com/thinkgos/thinkgos/blob/master/asserts/wxpay.jpg)
4 changes: 1 addition & 3 deletions handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,11 @@ func (sf *Server) handleBind(_ context.Context, writer io.Writer, _ *Request) er
}

// handleAssociate is used to handle a connect command
//
//nolint:unparam
func (sf *Server) handleAssociate(ctx context.Context, writer io.Writer, request *Request) error {
// Attempt to connect
dial := sf.dial
if dial == nil {
dial = func(ctx context.Context, net_, addr string) (net.Conn, error) {
dial = func(_ context.Context, net_, addr string) (net.Conn, error) {
return net.Dial(net_, addr)
}
}
Expand Down

0 comments on commit a7cd3d2

Please sign in to comment.