summaryrefslogtreecommitdiffstats
path: root/models/db/list_options.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/db/list_options.go')
-rw-r--r--models/db/list_options.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/db/list_options.go b/models/db/list_options.go
index d1d52b6667..54f6d945c8 100644
--- a/models/db/list_options.go
+++ b/models/db/list_options.go
@@ -58,7 +58,7 @@ func (opts *ListOptions) GetSkipTake() (skip, take int) {
func (opts *ListOptions) GetStartEnd() (start, end int) {
start, take := opts.GetSkipTake()
end = start + take
- return
+ return start, end
}
// SetDefaultValues sets default values