Skip to content

Commit

Permalink
Simplify targetMatched() function
Browse files Browse the repository at this point in the history
Signed-off-by: hossainemruz <[email protected]>
  • Loading branch information
hossainemruz committed May 20, 2020
1 parent 58948bd commit a5b9a01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions apis/invoker.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,5 @@ func isMemberConditionTrue(conditions []v1beta1.MemberConditions, target v1beta1
}

func targetMatched(t1, t2 v1beta1.TargetRef) bool {
if t1.APIVersion == t2.APIVersion &&
t1.Kind == t2.Kind &&
t1.Name == t2.Name {
return true
}
return false
return t1.APIVersion == t2.APIVersion && t1.Kind == t2.Kind && t1.Name == t2.Name
}

0 comments on commit a5b9a01

Please sign in to comment.