You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/06/15 07:56:38 UTC

[incubator-devlake] 11/12: fix linter

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 <ya...@meri.co>
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()),