mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Remove double negative in register_test.go
Signed-off-by: Anant Prakash <anantprakashjsr@gmail.com>
This commit is contained in:
parent
5bbd593a48
commit
c9e9e8d63c
|
|
@ -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 []")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue