chore: omit unnecessary reassignment (#6622)

Signed-off-by: ledigang <shuangcui@msn.com>
This commit is contained in:
ledigang
2025-11-24 20:01:30 +08:00
committed by GitHub
parent f63cad9651
commit 29977358d7
3 changed files with 0 additions and 3 deletions

View File

@@ -109,7 +109,6 @@ func (e *Engine) executeTemplateSpray(ctx context.Context, templatesList []*temp
defer wp.Wait()
for _, template := range templatesList {
template := template
select {
case <-ctx.Done():

View File

@@ -43,7 +43,6 @@ func (j *BurpFormat) Parse(input io.Reader, resultsCb formats.ParseReqRespCallba
// Print the parsed data for verification
for _, item := range items.Items {
item := item
binx, err := base64.StdEncoding.DecodeString(item.Request.Raw)
if err != nil {
return errors.Wrap(err, "could not decode base64")

View File

@@ -177,7 +177,6 @@ func TestCacheCheckConcurrent(t *testing.T) {
wg := sync.WaitGroup{}
for i := 1; i <= 100; i++ {
wg.Add(1)
i := i
go func() {
defer wg.Done()
cache.MarkFailed(protoType, ctx, errors.New("no address found for host"))