diff --git a/SUUpdater.m b/SUUpdater.m index fd1be205..d8fb63e5 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -85,8 +85,7 @@ static SUUpdater *sharedUpdater = nil; - (void)updatePermissionPromptFinishedWithResult:(SUPermissionPromptResult)result { - BOOL automaticallyCheck = (result == SUAutomaticallyCheck); - [[SUUserDefaults standardUserDefaults] setBool:automaticallyCheck forKey:SUEnableAutomaticChecksKey]; + [[SUUserDefaults standardUserDefaults] setBool:(result == SUAutomaticallyCheck) forKey:SUEnableAutomaticChecksKey]; [self scheduleNextUpdateCheck]; }