fix(qa): ISSUE-004 — 修复 vet 警告:append with no values
extract.go:164 的 append(whereArgs) 在 Go vet 中报错, 改为直接赋值 whereArgs(函数内不修改该切片,无需拷贝)。
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user