Skip to content

Commit 428670f

Browse files
committed
fix go lint
1 parent 875e273 commit 428670f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqle/api/controller/v1/task.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ type GetSqlFileOrderMethodResV1 struct {
12511251
// @Success 200 {object} v1.GetSqlFileOrderMethodResV1
12521252
// @router /v1/tasks/file_order_methods [get]
12531253
func GetSqlFileOrderMethodV1(c echo.Context) error {
1254-
var methods []SqlFileOrderMethod
1254+
methods := make([]SqlFileOrderMethod, 0, len(FileOrderMethods))
12551255
for _, method := range FileOrderMethods {
12561256
methods = append(methods, SqlFileOrderMethod{
12571257
OrderMethod: method.Method,

0 commit comments

Comments
 (0)