fix(qa): ISSUE-004 — 修复 vet 警告:append with no values

extract.go:164 的 append(whereArgs) 在 Go vet 中报错,
改为直接赋值 whereArgs(函数内不修改该切片,无需拷贝)。
This commit is contained in:
lmk
2026-06-16 19:17:57 +08:00
parent 7336f2d438
commit 4c2f7f7326
+1 -1
View File
@@ -161,7 +161,7 @@ func (e *DailyExtractor) executeExtract(ctx context.Context, ec *model.ExtractCo
for {
// 添加分页
pagedSQL := fmt.Sprintf("%s LIMIT %d OFFSET %d", extractSQL, batchSize, offset)
args := append(whereArgs)
args := whereArgs
rows, queryErr := gfdb.DB(ctx).GetAll(ctx, pagedSQL, args...)
if queryErr != nil {