rename variables in getTrackers

This commit is contained in:
Alexey Kostin 2022-04-04 22:58:23 +03:00
parent 2d91e47377
commit ef8fd5825a

View File

@ -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 {