mirror of
https://github.com/transmission/transmission
synced 2025-02-19 04:41:11 +00:00
(trunk web) remove an unneccesary field: the "trackerStats" field is a superset of of the "trackers" field, so our Torrent objects don't need to keep both -- the former can replace the latter.
This commit is contained in:
parent
f744bb583c
commit
8192c38fcc
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ Torrent.prototype =
|
|||
break;
|
||||
case 'trackerStats': // 'trackerStats' is a superset of 'trackers'...
|
||||
changed |= this.setField(this.fields,'trackers',data[key]);
|
||||
break;
|
||||
case 'trackers': // ...so only save 'trackers' if we don't have it already
|
||||
if (!(key in this.fields))
|
||||
changed |= this.setField(this.fields,key,data[key]);
|
||||
|
|
Loading…
Reference in a new issue