summaryrefslogtreecommitdiffstats
path: root/models/repo_activity.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/repo_activity.go')
-rw-r--r--models/repo_activity.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_activity.go b/models/repo_activity.go
index fb1385a54b..04612ae1ef 100644
--- a/models/repo_activity.go
+++ b/models/repo_activity.go
@@ -114,7 +114,7 @@ func GetActivityStatsTopAuthors(repo *Repository, timeFrom time.Time, count int)
v = append(v, u)
}
- sort.Slice(v[:], func(i, j int) bool {
+ sort.Slice(v, func(i, j int) bool {
return v[i].Commits < v[j].Commits
})