Skip to content

Commit eb21014

Browse files
authored
Merge pull request #443 from steadybit/chore/gofmt-tcp-reset
style: gofmt tcp_reset.go and tcp_reset_test.go
2 parents 9ad8185 + 779a7db commit eb21014

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

go/action_kit_commons/network/netfault/tcp_reset.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const mangleMarkValue = "0x5B"
1717
type TcpResetOpts struct {
1818
Filter
1919
ExecutionContext
20-
Interfaces []string
21-
Prepend bool
20+
Interfaces []string
21+
Prepend bool
2222
UseMangleChain bool
2323
}
2424

go/action_kit_commons/network/netfault/tcp_reset_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ func TestTcpResetOpts_iptablesScripts(t *testing.T) {
281281
Include: network.NewNetWithPortRanges(network.NetAny, network.PortRange{From: 8080, To: 8080}),
282282
},
283283
ExecutionContext: testExecCtx,
284-
UseMangleChain: true,
284+
UseMangleChain: true,
285285
},
286286
wantAddV4: []string{
287287
"*mangle",
@@ -361,7 +361,7 @@ func TestTcpResetOpts_iptablesScripts(t *testing.T) {
361361
},
362362
Interfaces: []string{"eth0"},
363363
ExecutionContext: testExecCtx,
364-
UseMangleChain: true,
364+
UseMangleChain: true,
365365
},
366366
wantAddV4: []string{
367367
"*mangle",
@@ -510,7 +510,7 @@ func TestTcpResetOpts_String(t *testing.T) {
510510
"resetting tcp connections (mangle+filter mark)\nto/from:\n 0.0.0.0/0\n ::/0\n",
511511
(&TcpResetOpts{
512512
UseMangleChain: true,
513-
Filter: Filter{Include: network.NewNetWithPortRanges(network.NetAny, network.PortRangeAny)},
513+
Filter: Filter{Include: network.NewNetWithPortRanges(network.NetAny, network.PortRangeAny)},
514514
}).String(),
515515
)
516516
}

0 commit comments

Comments
 (0)