Skip to content

Commit a89be2f

Browse files
committed
Code clean up for the dialers
1 parent aa6de8b commit a89be2f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

application/network/dial.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import (
2424

2525
// Dial dial to remote machine
2626
type Dial func(
27-
ctx context.Context, network string, address string) (net.Conn, error)
27+
ctx context.Context,
28+
network string,
29+
address string,
30+
) (net.Conn, error)
2831

2932
// TCPDial build a TCP dialer
3033
func TCPDial() Dial {

application/network/dial_ac.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ type AllowedHosts map[string]struct{}
3535
// Allowed returns whether or not given host is allowed
3636
func (a AllowedHosts) Allowed(host string) bool {
3737
_, ok := a[host]
38-
3938
return ok
4039
}
4140

0 commit comments

Comments
 (0)