diff options
Diffstat (limited to 'modules/base/tool.go')
-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 a8bad9de3b..5b066b2b9f 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 |