Skip to content

Commit b7927ce

Browse files
committed
Merge pull request #55 from segiddins/shared-instance-instancetype
Make `+[TMAPIClient sharedInstance]` instancetype
2 parents 191f988 + 0ea3ecf commit b7927ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

TMTumblrSDK/APIClient/TMAPIClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ typedef void (^TMAPICallback)(id, NSError *error);
6565

6666
/** @name Singleton instance */
6767

68-
+ (TMAPIClient *)sharedInstance;
68+
+ (instancetype)sharedInstance;
6969

7070
/** @name Sending raw requests */
7171

TMTumblrSDK/APIClient/TMAPIClient.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ @interface TMAPIClient()
2828

2929
@implementation TMAPIClient
3030

31-
+ (id)sharedInstance {
31+
+ (instancetype)sharedInstance {
3232
static TMAPIClient *instance;
3333
static dispatch_once_t predicate;
34-
dispatch_once(&predicate, ^{ instance = [[TMAPIClient alloc] init]; });
34+
dispatch_once(&predicate, ^{ instance = [[self alloc] init]; });
3535
return instance;
3636
}
3737

0 commit comments

Comments
 (0)