Skip to content

Commit

Permalink
Changed class constructor to return instancetype
Browse files Browse the repository at this point in the history
  • Loading branch information
Conrad Kramer committed Dec 27, 2012
1 parent 53d6e6f commit 09f2f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AFOAuth2Client.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ extern NSString * const kAFOAuthRefreshGrantType;
@property (readonly, nonatomic) NSString *serviceProviderIdentifier;
@property (readonly, nonatomic) NSString *clientID;

+ (AFOAuth2Client *)clientWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret;
+ (instancetype)clientWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret;

- (id)initWithBaseURL:(NSURL *)url
clientID:(NSString *)clientID
Expand Down
2 changes: 1 addition & 1 deletion AFOAuth2Client.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ @interface AFOAuth2Client ()

@implementation AFOAuth2Client

+ (AFOAuth2Client *)clientWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret {
+ (instancetype)clientWithBaseURL:(NSURL *)url clientID:(NSString *)clientID secret:(NSString *)secret {
return [[self alloc] initWithBaseURL:url clientID:clientID secret:secret];
}

Expand Down

0 comments on commit 09f2f5c

Please sign in to comment.