Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Apr 28, 2024
1 parent bc7a718 commit fbbb92a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pilot/pkg/model/sidecar_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2538,10 +2538,9 @@ func TestCreateSidecarScope(t *testing.T) {
// validate service is also in sidecarScope.serviceByHostname
if s2, ok := sidecarScope.servicesByHostname[s1.Hostname]; !ok {
t.Errorf("Expected service %v should also in servicesByHostname", s1.Hostname)
} else {
if s1 != s2 {
t.Errorf("Expected service %v in SidecarScope.Services should equal to that in SidecarScope.servicesByHostname", s1.Hostname)
}
} else if s1 != s2 {
t.Errorf("Expected service %v in SidecarScope.Services should equal to that in SidecarScope.servicesByHostname", s1.Hostname)

}
}

Expand Down

0 comments on commit fbbb92a

Please sign in to comment.