Remove unnecessary assignment to "err".

This commit is contained in:
Joachim Bauch 2020-07-31 15:22:18 +02:00
parent efc232fb9c
commit 5964a98218
Failed to extract signature

View file

@ -1183,8 +1183,7 @@ func TestBackendServer_ParticipantsUpdateTimeout(t *testing.T) {
ctx2, cancel2 := context.WithTimeout(context.Background(), time.Second+100*time.Millisecond)
defer cancel2()
msg1_c, err := client1.RunUntilMessage(ctx2)
if msg1_c != nil {
if msg1_c, _ := client1.RunUntilMessage(ctx2); msg1_c != nil {
if in_call_2, err := checkMessageParticipantsInCall(msg1_c); err != nil {
t.Error(err)
} else if len(in_call_2.Users) != 2 {
@ -1194,8 +1193,7 @@ func TestBackendServer_ParticipantsUpdateTimeout(t *testing.T) {
ctx3, cancel3 := context.WithTimeout(context.Background(), time.Second+100*time.Millisecond)
defer cancel3()
msg2_c, err := client2.RunUntilMessage(ctx3)
if msg2_c != nil {
if msg2_c, _ := client2.RunUntilMessage(ctx3); msg2_c != nil {
if in_call_2, err := checkMessageParticipantsInCall(msg2_c); err != nil {
t.Error(err)
} else if len(in_call_2.Users) != 2 {