Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Qiyue Yao <[email protected]>
  • Loading branch information
qiyueyao committed Apr 29, 2024
1 parent de419fd commit 78cd8c6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/e2e/reachability.go
Original file line number Diff line number Diff line change
Expand Up @@ -414,11 +414,10 @@ func NewNPEvaluation(pods []Pod) *NPEvaluation {
}

func (e *NPEvaluation) Expect(from Pod, to Pod, npName string, action string) {
_, ok := e.itemSet[from.String()]
if !ok {
if _, ok := e.itemSet[from.String()]; !ok {
panic(fmt.Errorf("key %s not allowed", from))
}
if _, ok = e.itemSet[to.String()]; !ok {
if _, ok := e.itemSet[to.String()]; !ok {
panic(fmt.Errorf("key %s not allowed", to))
}
e.Truth = append(e.Truth, &NPEvaluationSpec{from, to, npName, action})
Expand Down

0 comments on commit 78cd8c6

Please sign in to comment.