mirror of
https://github.com/transmission/transmission
synced 2025-03-12 15:14:12 +00:00
remove unneeded variables
This commit is contained in:
parent
844f52b634
commit
aa304152af
1 changed files with 2 additions and 4 deletions
|
@ -274,8 +274,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
downloading++;
|
||||
}
|
||||
|
||||
BOOL shouldAsk = [fDefaults boolForKey: @"CheckQuitDownloading"] ? downloading > 0 : active > 0;
|
||||
if (shouldAsk)
|
||||
if ([fDefaults boolForKey: @"CheckQuitDownloading"] ? downloading > 0 : active > 0)
|
||||
{
|
||||
NSString * message = active == 1
|
||||
? @"There is an active transfer. Do you really want to quit?"
|
||||
|
@ -531,8 +530,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
}
|
||||
}
|
||||
|
||||
BOOL shouldAsk = [fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0;
|
||||
if (shouldAsk)
|
||||
if ([fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0)
|
||||
{
|
||||
NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
torrents, @"Torrents",
|
||||
|
|
Loading…
Add table
Reference in a new issue