Commit aad2ad5d authored by rht's avatar rht

Run 'gofmt -s -w' on these files

parent 1f178a6f
...@@ -128,10 +128,10 @@ func TestPartnerWantsThenCancels(t *testing.T) { ...@@ -128,10 +128,10 @@ func TestPartnerWantsThenCancels(t *testing.T) {
type testCase [][]string type testCase [][]string
testcases := []testCase{ testcases := []testCase{
testCase{ {
alphabet, vowels, alphabet, vowels,
}, },
testCase{ {
alphabet, stringsComplement(alphabet, vowels), alphabet, stringsComplement(alphabet, vowels),
}, },
} }
......
...@@ -27,7 +27,7 @@ func TestNewMessageFromProto(t *testing.T) { ...@@ -27,7 +27,7 @@ func TestNewMessageFromProto(t *testing.T) {
protoMessage := new(pb.Message) protoMessage := new(pb.Message)
protoMessage.Wantlist = new(pb.Message_Wantlist) protoMessage.Wantlist = new(pb.Message_Wantlist)
protoMessage.Wantlist.Entries = []*pb.Message_Wantlist_Entry{ protoMessage.Wantlist.Entries = []*pb.Message_Wantlist_Entry{
&pb.Message_Wantlist_Entry{Block: proto.String(str)}, {Block: proto.String(str)},
} }
if !wantlistContains(protoMessage.Wantlist, str) { if !wantlistContains(protoMessage.Wantlist, str) {
t.Fail() t.Fail()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment