Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golint: redundant type from array, slice, or map composite literal #601

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions net_tcp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func Test_newNetTCP(t *testing.T) {
name: "tcp file found, no error should come up",
file: "testdata/fixtures/proc/net/tcp",
want: []*netIPSocketLine{
&netIPSocketLine{
{
Sl: 0,
LocalAddr: net.IP{10, 0, 0, 5},
LocalPort: 22,
Expand All @@ -42,7 +42,7 @@ func Test_newNetTCP(t *testing.T) {
UID: 0,
Inode: 2740,
},
&netIPSocketLine{
{
Sl: 1,
LocalAddr: net.IP{0, 0, 0, 0},
LocalPort: 22,
Expand All @@ -54,7 +54,7 @@ func Test_newNetTCP(t *testing.T) {
UID: 0,
Inode: 2740,
},
&netIPSocketLine{
{
Sl: 2,
LocalAddr: net.IP{0, 0, 0, 0},
LocalPort: 22,
Expand All @@ -73,7 +73,7 @@ func Test_newNetTCP(t *testing.T) {
name: "tcp6 file found, no error should come up",
file: "testdata/fixtures/proc/net/tcp6",
want: []*netIPSocketLine{
&netIPSocketLine{
{
Sl: 1315,
LocalAddr: net.IP{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
LocalPort: 5355,
Expand All @@ -85,7 +85,7 @@ func Test_newNetTCP(t *testing.T) {
UID: 981,
Inode: 21040,
},
&netIPSocketLine{
{
Sl: 6073,
LocalAddr: net.IP{254, 128, 0, 0, 0, 0, 0, 0, 86, 225, 173, 255, 254, 124, 102, 9},
LocalPort: 51073,
Expand Down