Skip to content

Commit 9981291

Browse files
Emyrkjohnstcn
authored andcommitted
Fix all()
1 parent 03e4d0f commit 9981291

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/authz/authztest/permissions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ func (lg LevelGroup) All() Set {
119119
net := lg.Abstain()
120120
all := make(Set, len(pos)+len(neg)+len(net))
121121
var i int
122-
i += copy(all, pos)
123-
i += copy(all, neg)
124-
i += copy(all, net)
122+
i += copy(all[i:], pos)
123+
i += copy(all[i:], neg)
124+
i += copy(all[i:], net)
125125
return all
126126
}
127127

0 commit comments

Comments
 (0)