Skip to content

Commit

Permalink
Remove unnessary type assertion (#6479)
Browse files Browse the repository at this point in the history
remove unnessary type assertion
  • Loading branch information
Jim Ryan authored Sep 23, 2024
1 parent c1c9f7d commit fdedba6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/certmanager/test_files/reactors.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ func ObjectCreatedReactor(t *testing.T, b *Builder, expectedObj runtime.Object)
if !ok {
return
}
obj, ok := createAction.GetObject().(runtime.Object)
if !ok {
t.Errorf("object passed to Create does not implement runtime.Object")
}

obj := createAction.GetObject()
if !reflect.DeepEqual(obj, expectedObj) {
t.Errorf("expected %+v to equal %+v", obj, expectedObj)
}
Expand Down

0 comments on commit fdedba6

Please sign in to comment.