@@ -500,7 +500,7 @@ func getIssueFromRef(repo *Repository, ref string) (*Issue, error) {
500
500
return nil , nil
501
501
}
502
502
503
- issue , err := GetIssueByIndex (refRepo .ID , int64 ( issueIndex ) )
503
+ issue , err := GetIssueByIndex (refRepo .ID , issueIndex )
504
504
if err != nil {
505
505
if IsErrIssueNotExist (err ) {
506
506
return nil , nil
@@ -565,7 +565,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
565
565
566
566
// issue is from another repo
567
567
if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
568
- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
568
+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
569
569
if err != nil {
570
570
continue
571
571
}
@@ -602,7 +602,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
602
602
603
603
// issue is from another repo
604
604
if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
605
- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
605
+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
606
606
if err != nil {
607
607
continue
608
608
}
@@ -631,7 +631,7 @@ func UpdateIssuesCommit(doer *User, repo *Repository, commits []*PushCommit, bra
631
631
632
632
// issue is from another repo
633
633
if len (m [1 ]) > 0 && len (m [2 ]) > 0 {
634
- refRepo , err = GetRepositoryFromMatch (string ( m [1 ]), string ( m [2 ]) )
634
+ refRepo , err = GetRepositoryFromMatch (m [1 ], m [2 ])
635
635
if err != nil {
636
636
continue
637
637
}
0 commit comments