index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
modules
/
base
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
slene <vslene@gmail.com>
2014-05-25 20:16:11 +0800
committer
slene <vslene@gmail.com>
2014-05-28 14:01:41 +0800
commit
4ee6bc4fcac47edeea1f1e9fd5fbfd3ef595bbca
(
patch
)
tree
8867be03be123ea8c84bc92d7d388f6ac85de058
/
modules/base
parent
ab13a29cb530457328cf9d3a2511c2db1d5ccaca
(
diff
)
fix for new git api
Diffstat
(limited to 'modules/base')
-rw-r--r--
modules/base/tool.go
3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/base/tool.go b/modules/base/tool.go
index a8bad9de..5b066b2b 100644
--- a/
modules/base/tool.go
+++ b/
modules/base/tool.go
@@ -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