This commit is contained in:
Lunny Xiao 2018-05-08 16:29:57 +08:00
parent 7810e439d4
commit 9a9a0bc1b8
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
// Copyright 2014 The Gogs Authors. All rights reserved.
// Copyright 2017 The Gitea Authors. All rights reserved.
// Copyright 2016 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.

View File

@ -431,7 +431,7 @@ func restoreTableFixtures(bean interface{}, dirPath string) error {
}
var columns = make([]string, 0, len(records[0]))
for k, _ := range records[0] {
for k := range records[0] {
columns = append(columns, k)
}
sort.Strings(columns)