This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 0af33d30f083bd579a54b380ed7977f286326e2e
Author: linyh <[email protected]>
AuthorDate: Wed Jun 15 15:31:36 2022 +0800

    fix linter
---
 helpers/e2ehelper/data_flow_tester.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/helpers/e2ehelper/data_flow_tester.go 
b/helpers/e2ehelper/data_flow_tester.go
index a006d56f..6fb97580 100644
--- a/helpers/e2ehelper/data_flow_tester.go
+++ b/helpers/e2ehelper/data_flow_tester.go
@@ -155,8 +155,7 @@ func (t *DataFlowTester) Subtask(subtaskMeta 
core.SubTaskMeta, taskData interfac
 // CreateSnapshot reads rows from database and write them into .csv file.
 func (t *DataFlowTester) CreateSnapshot(dst schema.Tabler, csvRelPath string, 
pkfields []string, targetfields []string) {
        location, _ := time.LoadLocation(`UTC`)
-       var allFields []string
-       allFields = append(pkfields, targetfields...)
+       allFields := append(pkfields, targetfields...)
        dbCursor, err := t.Dal.Cursor(
                dal.Select(strings.Join(allFields, `,`)),
                dal.From(dst.TableName()),

Reply via email to