fix lint
This commit is contained in:
parent
7810e439d4
commit
9a9a0bc1b8
|
|
@ -1,5 +1,5 @@
|
||||||
// Copyright 2014 The Gogs Authors. All rights reserved.
|
// 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
|
// Use of this source code is governed by a MIT-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ func restoreTableFixtures(bean interface{}, dirPath string) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
var columns = make([]string, 0, len(records[0]))
|
var columns = make([]string, 0, len(records[0]))
|
||||||
for k, _ := range records[0] {
|
for k := range records[0] {
|
||||||
columns = append(columns, k)
|
columns = append(columns, k)
|
||||||
}
|
}
|
||||||
sort.Strings(columns)
|
sort.Strings(columns)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user