mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
passing nil for no progress is a bit more efficient
This commit is contained in:
parent
92f637e017
commit
ffde59b418
1 changed files with 1 additions and 1 deletions
|
@ -684,7 +684,7 @@
|
|||
else if ([ident isEqualToString: @"Progress"])
|
||||
{
|
||||
NSNumber * progress;
|
||||
return (progress = [peer objectForKey: @"Progress"]) ? progress : [NSNumber numberWithFloat: 0];
|
||||
return (progress = [peer objectForKey: @"Progress"]) ? progress : nil;
|
||||
}
|
||||
else if ([ident isEqualToString: @"UL To"])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue