fix: lint

This commit is contained in:
kolaente 2022-08-15 22:41:43 +02:00 committed by Gitea
parent 9ddd7f4889
commit 0c8bed4054
2 changed files with 3 additions and 5 deletions

View file

@ -18,9 +18,10 @@ package migration
import (
"encoding/json"
"src.techknowlogick.com/xormigrate"
"strconv"
"strings"
"src.techknowlogick.com/xormigrate"
"xorm.io/xorm"
)

View file

@ -216,10 +216,7 @@ func getNativeValueForTaskField(fieldName string, comparator taskFilterComparato
if realFieldName == "Assignees" {
vals := strings.Split(value, ",")
valueSlice := []string{}
for _, val := range vals {
valueSlice = append(valueSlice, val)
}
valueSlice := append([]string{}, vals...)
return valueSlice, nil
}