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 ( import (
"encoding/json" "encoding/json"
"src.techknowlogick.com/xormigrate"
"strconv" "strconv"
"strings" "strings"
"src.techknowlogick.com/xormigrate"
"xorm.io/xorm" "xorm.io/xorm"
) )

View file

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