use BUYAssert instead of NSParameterAssert

parent 18f1514d
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#import "BUYApplePayAuthorizationDelegate.h" #import "BUYApplePayAuthorizationDelegate.h"
#import "BUYApplePayAdditions.h" #import "BUYApplePayAdditions.h"
#import "BUYApplePayToken.h" #import "BUYApplePayToken.h"
#import "BUYAssert.h"
#import "BUYClient+Checkout.h" #import "BUYClient+Checkout.h"
#import "BUYClient+Storefront.h" #import "BUYClient+Storefront.h"
#import "BUYCheckout.h" #import "BUYCheckout.h"
...@@ -48,9 +49,9 @@ const NSTimeInterval PollDelay = 0.5; ...@@ -48,9 +49,9 @@ const NSTimeInterval PollDelay = 0.5;
- (instancetype)initWithClient:(BUYClient *)client checkout:(BUYCheckout *)checkout shopName:(NSString *)shopName - (instancetype)initWithClient:(BUYClient *)client checkout:(BUYCheckout *)checkout shopName:(NSString *)shopName
{ {
NSParameterAssert(client); BUYAssert(client, @"Failed to initialize BUYApplePayAuthorizationDelegate. Client must not be nil.");
NSParameterAssert(checkout); BUYAssert(checkout, @"Failed to initialize BUYApplePayAuthorizationDelegate. Checkout must not be nil.");
NSParameterAssert(shopName); BUYAssert(shopName, @"Failed to initialize BUYApplePayAuthorizationDelegate. Shop name must not be nil.");
self = [super init]; self = [super init];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment