1
0
Fork 0
forked from forgejo/forgejo

fix for new git api

This commit is contained in:
slene 2014-05-25 20:16:11 +08:00
parent ab13a29cb5
commit 4ee6bc4fca
5 changed files with 61 additions and 19 deletions

View file

@ -509,8 +509,7 @@ type argInt []int
func (a argInt) Get(i int, args ...int) (r int) {
if i >= 0 && i < len(a) {
r = a[i]
}
if len(args) > 0 {
} else if len(args) > 0 {
r = args[0]
}
return