Skip to content

Commit

Permalink
Address comments for direct name match
Browse files Browse the repository at this point in the history
  • Loading branch information
pcockwell committed Sep 30, 2019
1 parent a646f76 commit a70384b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jiradata/TransitionsFuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func (t Transitions) Find(name string) *Transition {
name = strings.ToLower(name)
matches := []Transitions{}
for _, trans := range t {
if strings.Compare(strings.ToLower(trans.Name), name) == 0 {
if strings.ToLower(trans.Name) == name {
return trans
}
if strings.Contains(strings.ToLower(trans.Name), name) {
Expand Down

0 comments on commit a70384b

Please sign in to comment.