Skip to content

Commit

Permalink
[receiver/statsdreceiver/transport]enable gocritic (open-telemetry#12505
Browse files Browse the repository at this point in the history
)

enable gocritic in statsdreceiver/transport

Signed-off-by: xin.li <[email protected]>
  • Loading branch information
my-git9 committed Jul 18, 2022
1 parent 4e86e77 commit 06ab79b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions receiver/statsdreceiver/transport/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// nolint:gocritic
package transport

import (
Expand Down Expand Up @@ -40,10 +39,8 @@ func Test_Server_ListenAndServe(t *testing.T) {
buildClientFn func(host string, port int) (*client.StatsD, error)
}{
{
name: "udp",
buildServerFn: func(addr string) (Server, error) {
return NewUDPServer(addr)
},
name: "udp",
buildServerFn: NewUDPServer,
buildClientFn: func(host string, port int) (*client.StatsD, error) {
return client.NewStatsD(client.UDP, host, port)
},
Expand Down

0 comments on commit 06ab79b

Please sign in to comment.