Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix string format failure

  • Loading branch information...
commit 99e81f1ce80d73e7a5361d5afe9bd8a4272366a9 1 parent 02241ac
@dennisreimann authored
View
2  Classes/IOCRepositoryController.m
@@ -218,7 +218,7 @@ - (void)toggleRepositoryWatching {
[SVProgressHUD showWithStatus:status maskType:SVProgressHUDMaskTypeGradient];
[self.currentUser setWatching:state forRepository:self.repository success:^(GHResource *instance, id data) {
NSString *action = state ? NSLocalizedString(@"Watched %@", @"Progress HUD: Watched REPO_ID") : NSLocalizedString(@"Unwatched %@", @"Progress HUD: Unwatched REPO_ID");
- NSString *status = [NSString stringWithFormat:@"%@ %@", action, self.repository.repoId];
+ NSString *status = [NSString stringWithFormat:action, self.repository.repoId];
self.isWatching = state;
[SVProgressHUD showSuccessWithStatus:status];
} failure:^(GHResource *instance, NSError *error) {
View
2  Classes/IOCUserController.m
@@ -185,7 +185,7 @@ - (void)toggleUserFollowing {
[SVProgressHUD showWithStatus:status maskType:SVProgressHUDMaskTypeGradient];
[self.currentUser setFollowing:state forUser:self.user success:^(GHResource *instance, id data) {
NSString *action = state ? NSLocalizedString(@"Followed %@", @"Progress HUD: Followed USER") : NSLocalizedString(@"Unfollowed %@", @"Progress HUD: Unfollowed USER");
- NSString *status = [NSString stringWithFormat:@"%@ %@", action, self.user.login];
+ NSString *status = [NSString stringWithFormat:action, self.user.login];
self.isFollowing = state;
[SVProgressHUD showSuccessWithStatus:status];
} failure:^(GHResource *instance, NSError *error) {
Please sign in to comment.
Something went wrong with that request. Please try again.