From c9e9e8d63ce6f459d2beebd0a52bec03d6f52bc6 Mon Sep 17 00:00:00 2001 From: Anant Prakash Date: Thu, 15 Mar 2018 19:29:11 +0530 Subject: [PATCH] Remove double negative in register_test.go Signed-off-by: Anant Prakash --- .../matrix-org/dendrite/clientapi/routing/register_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/register_test.go b/src/github.com/matrix-org/dendrite/clientapi/routing/register_test.go index 7e3b893ba..f141b8497 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/register_test.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/register_test.go @@ -141,7 +141,7 @@ func TestEmptyCompletedFlows(t *testing.T) { ret := fakeEmptySessions.GetCompletedStages(fakeSessionID) // check for [] - if !(len(ret) == 0 && ret != nil) { + if ret == nil || len(ret) != 0 { t.Error("Empty Completed Flow Stages should be a empty slice: returned ", ret, ". Should be []") } }