Address comments for direct name match

This commit is contained in:
Patrick Cockwell
2019-09-30 16:57:14 -07:00
committed by Cory Bennett
parent 62ccffaf05
commit 8ede63c37e
+1 -1
View File
@@ -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) {