mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-04 03:58:29 +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)
|
name = strings.ToLower(name)
|
||||||
matches := []Transitions{}
|
matches := []Transitions{}
|
||||||
for _, trans := range t {
|
for _, trans := range t {
|
||||||
if strings.Compare(strings.ToLower(trans.Name), name) == 0 {
|
if strings.ToLower(trans.Name) == name {
|
||||||
return trans
|
return trans
|
||||||
}
|
}
|
||||||
if strings.Contains(strings.ToLower(trans.Name), name) {
|
if strings.Contains(strings.ToLower(trans.Name), name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user