Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
removed misplaced line
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerharbo committed Aug 30, 2012
1 parent b57fa71 commit 95a23fd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Appirater.m
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ + (void)rateApp {
#else
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];

// added work arround for wrong URL Scheme & iOS 6
// added work arround for wrong URL Scheme used in new App store on iOS 6
NSString *reviewURL;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0) {
reviewURL = [templateReviewURLiOS6 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%d", APPIRATER_APP_ID]];
Expand All @@ -338,8 +338,6 @@ + (void)rateApp {
reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%d", APPIRATER_APP_ID]];
}

[[NSLocale preferredLanguages] objectAtIndex:0]

[userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
[userDefaults synchronize];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
Expand Down

0 comments on commit 95a23fd

Please sign in to comment.