mirror of
https://github.com/Threnklyn/jira.git
synced 2026-05-28 16:58:28 +02:00
Address comments for direct name match
This commit is contained in:
committed by
Cory Bennett
parent
62ccffaf05
commit
8ede63c37e
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user