fix: lint
This commit is contained in:
parent
9ddd7f4889
commit
0c8bed4054
2 changed files with 3 additions and 5 deletions
|
@ -18,9 +18,10 @@ package migration
|
|||
|
||||
import (
|
||||
"encoding/json"
|
||||
"src.techknowlogick.com/xormigrate"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"src.techknowlogick.com/xormigrate"
|
||||
"xorm.io/xorm"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue