Skip to content

Commit

Permalink
Run a go fmt -w -s (miekg#1235)
Browse files Browse the repository at this point in the history
Noticed a non-gofmted `;` earlier, run gofmt -w -s on all files.

(mechanical change)

Signed-off-by: Miek Gieben <miek@miek.nl>
  • Loading branch information
miekg authored and aanm committed Jul 29, 2022
1 parent d474293 commit 53dd0c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions msg_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ func TestPackDataAplPrefix_BufferBounds(t *testing.T) {

func TestPackDataApl(t *testing.T) {
in := []APLPrefix{
APLPrefix{
{
Negation: true,
Network: net.IPNet{
IP: net.ParseIP("198.51.0.0").To4(),
Mask: net.CIDRMask(16, 32),
},
},
APLPrefix{
{
Negation: false,
Network: net.IPNet{
IP: net.ParseIP("2001:db8:beef::"),
Expand Down
8 changes: 4 additions & 4 deletions tsig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func TestTsigGenerate(t *testing.T) {
testTSIG.OtherData = tc.otherData
req := &Msg{
MsgHdr: MsgHdr{Opcode: OpcodeUpdate},
Question: []Question{Question{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Question: []Question{{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Extra: []RR{&testTSIG},
}

Expand Down Expand Up @@ -220,7 +220,7 @@ func TestTSIGHMAC224And384(t *testing.T) {
}
req := &Msg{
MsgHdr: MsgHdr{Opcode: OpcodeUpdate},
Question: []Question{Question{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Question: []Question{{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Extra: []RR{&tsig},
}

Expand Down Expand Up @@ -294,7 +294,7 @@ func TestTsigGenerateProvider(t *testing.T) {
}
req := &Msg{
MsgHdr: MsgHdr{Opcode: OpcodeUpdate},
Question: []Question{Question{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Question: []Question{{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Extra: []RR{&tsig},
}

Expand Down Expand Up @@ -336,7 +336,7 @@ func TestTsigVerifyProvider(t *testing.T) {
}
req := &Msg{
MsgHdr: MsgHdr{Opcode: OpcodeUpdate},
Question: []Question{Question{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Question: []Question{{Name: "example.com.", Qtype: TypeSOA, Qclass: ClassINET}},
Extra: []RR{&tsig},
}

Expand Down

0 comments on commit 53dd0c9

Please sign in to comment.