Merge pull request #715 from stripe/bg-fix-lint-issues

Fix lint and analyzer issues
This commit is contained in:
bg-stripe 2017-06-27 18:22:45 -04:00 committed by GitHub
commit 693ca110ed
2 changed files with 3 additions and 3 deletions

View File

@ -105,8 +105,8 @@ typedef NS_ENUM(NSUInteger, STPBillingAddressFields) {
* @param address The user's shipping address. If nil, this method will return nil.
* @param method The user's selected shipping method. May be nil.
*/
+ (NSDictionary *)shippingInfoForChargeWithAddress:(nullable STPAddress *)address
shippingMethod:(nullable PKShippingMethod *)method;
+ (nullable NSDictionary *)shippingInfoForChargeWithAddress:(nullable STPAddress *)address
shippingMethod:(nullable PKShippingMethod *)method;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"

View File

@ -66,7 +66,7 @@
return nil;
}
STPCustomer *customer = [STPCustomer new];
STPCustomer *customer = [[self class] new];
customer.stripeID = dict[@"id"];
NSString *defaultSourceId;
if ([dict[@"default_source"] isKindOfClass:[NSString class]]) {