Skip to content

Commit

Permalink
Address linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dgunay committed Dec 5, 2021
1 parent 87c0d28 commit 8e558f8
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 6 deletions.
1 change: 1 addition & 0 deletions AUTHORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ cgojin <gongjin21@hotmail.com>
Chao Yuan <yuanchao0310@163.com>
David Hamilton <davidhamiltron@gmail.com>
David Zhao <david@davidzhao.com>
Devin Gunay <devingunay@gmail.com>
Henry <cryptix@riseup.net>
hn8 <10730886+hn8@users.noreply.github.com>
Hugo Arregui <hugo.arregui@gmail.com>
Expand Down
6 changes: 3 additions & 3 deletions active_tcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ func TestActiveTCP(t *testing.T) {
r.NoError(err)
r.Equal(data2, buffer[:n])

//r.NoError(activeAgenConn.Close())
//r.NoError(passiveAgentConn.Close())
//r.NoError(tcpMux.Close())
// r.NoError(activeAgenConn.Close())
// r.NoError(passiveAgentConn.Close())
// r.NoError(tcpMux.Close())
}

func TestUDP(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion agent_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ type AgentConfig struct {
// experimental and the API might change in the future.
TCPMux TCPMux

// TODO Add docs
activeTCP bool
tcpReadBufferSize int

Expand Down
1 change: 1 addition & 0 deletions agent_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions agent_udpmux_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 0 additions & 1 deletion candidate_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func NewCandidateHost(config *CandidateHostConfig) (*CandidateHost, error) {
}

if !strings.HasSuffix(config.Address, ".local") {

if config.TCPType == TCPTypeActive {
c.candidateBase.networkType = NetworkTypeTCP4
return c, nil
Expand Down
1 change: 1 addition & 0 deletions candidate_relay_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions candidate_server_reflexive_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions connectivity_vnet_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions gather_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions gather_vnet_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions mdns_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 0 additions & 1 deletion selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ func (s *controlledSelector) ContactCandidates() {
}

func (s *controlledSelector) PingCandidate(local, remote Candidate) {

if remote.Port() == 0 {
return
}
Expand Down
1 change: 1 addition & 0 deletions transport_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions transport_vnet_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down
1 change: 1 addition & 0 deletions udp_mux_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !js
// +build !js

package ice
Expand Down

0 comments on commit 8e558f8

Please sign in to comment.