From 0c8bed4054649de8510e5a636d1a14b65d52c402 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 15 Aug 2022 22:41:43 +0200 Subject: [PATCH] fix: lint --- pkg/migration/20220815200851.go | 3 ++- pkg/models/task_collection_filter.go | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pkg/migration/20220815200851.go b/pkg/migration/20220815200851.go index a6a80bef..36561d9f 100644 --- a/pkg/migration/20220815200851.go +++ b/pkg/migration/20220815200851.go @@ -18,9 +18,10 @@ package migration import ( "encoding/json" - "src.techknowlogick.com/xormigrate" "strconv" "strings" + + "src.techknowlogick.com/xormigrate" "xorm.io/xorm" ) diff --git a/pkg/models/task_collection_filter.go b/pkg/models/task_collection_filter.go index 4a254a3c..11718dbc 100644 --- a/pkg/models/task_collection_filter.go +++ b/pkg/models/task_collection_filter.go @@ -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 }