From ef8fd5825aad5e21bf09bb07df70f37bc8702939 Mon Sep 17 00:00:00 2001 From: Alexey Kostin Date: Mon, 4 Apr 2022 22:58:23 +0300 Subject: [PATCH] rename variables in getTrackers --- internal/transfer/transfer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/transfer/transfer.go b/internal/transfer/transfer.go index 0285547..a6e0f25 100644 --- a/internal/transfer/transfer.go +++ b/internal/transfer/transfer.go @@ -146,13 +146,13 @@ func (transfer *TransferStructure) GetTrackers(trackers interface{}) { switch strct := trackers.(type) { case []string: for _, str := range strct { - for _, str := range strings.Fields(str) { - transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{str}) + for _, substr := range strings.Fields(str) { + transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{substr}) } } case string: - for _, str := range strings.Fields(strct) { - transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{str}) + for _, substr := range strings.Fields(strct) { + transfer.Fastresume.Trackers = append(transfer.Fastresume.Trackers, []string{substr}) } case []interface{}: for _, st := range strct {