From 4ecab778576f0e2054b1bac12a358f9904a9c724 Mon Sep 17 00:00:00 2001 From: luowei Date: Tue, 28 Nov 2023 11:31:12 +0800 Subject: [PATCH] fix lint --- sqle/api/controller/v1/sql_audit_record.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqle/api/controller/v1/sql_audit_record.go b/sqle/api/controller/v1/sql_audit_record.go index d9388e6f44..bcc2660c9c 100644 --- a/sqle/api/controller/v1/sql_audit_record.go +++ b/sqle/api/controller/v1/sql_audit_record.go @@ -361,7 +361,7 @@ func parseXMLsWithFilePath(xmlContents []xmlParser.XmlFiles) ([]SQLsFromFile, er return nil, fmt.Errorf("parse sqls from xml failed: %v", err) } - var sqls []SQLsFromFile + sqls := []SQLsFromFile{} for _, xmlContent := range xmlContents { var sqlBuffer bytes.Buffer ss := getSQLsByFilePath(xmlContent.FilePath, allStmtsFromXml)