Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
Fix Xcode 9 lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vbabenkoru committed Apr 12, 2018
1 parent e160718 commit 436dc03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Iterable-iOS-SDK/IterableAPI.m
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ + (OnSuccessHandler)defaultOnSuccess:(NSString *)identifier
@abstract default failure completion handler; warning logs the result from Iterable
@param identifier an identifier for what succeeded; pass in something like the function name
@param identifier an identifier for what failed; pass in something like the function name
@return a completion handler for use with `onFailure` of `sendRequest:onSuccess:onFailure:`
*/
Expand Down Expand Up @@ -718,7 +718,7 @@ - (void)updateEmail:(NSString *)newEmail onSuccess:(OnSuccessHandler)onSuccess o

NSURLRequest *request = [self createRequestForAction:ENDPOINT_UPDATE_EMAIL withArgs:args];
[self sendRequest:request onSuccess:^(NSDictionary *dictionary) {
_email = newEmail;
self->_email = newEmail;
if (onSuccess) {
onSuccess(dictionary);
}
Expand Down
8 changes: 4 additions & 4 deletions Iterable-iOS-SDK/IterableInAppHTMLViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
callbackURL = strNoURLScheme;
}
[self dismissViewControllerAnimated:NO completion:^{
if (_customBlockCallback != nil) {
_customBlockCallback(callbackURL);
if (self.customBlockCallback != nil) {
self.customBlockCallback(callbackURL);
}

if (_trackParams != nil) {
if (self.trackParams != nil) {
IterableAPI *api = IterableAPI.sharedInstance;
[api trackInAppClick:_trackParams.messageId buttonURL:destinationURL];
[api trackInAppClick:self.trackParams.messageId buttonURL:destinationURL];
}
}];
return NO;
Expand Down
2 changes: 1 addition & 1 deletion Iterable-iOS-SDK/IterableLogging.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
////////////////////////

// function that appends STDERR to the asl logger; uses dispatch_once to only do it once
void AddStderrOnce();
void AddStderrOnce(void);

// heavily inspired by http://doing-it-wrong.mikeweller.com/2012/07/youre-doing-it-wrong-1-nslogdebug-ios.html
// and http://stackoverflow.com/questions/300673/is-it-true-that-one-should-not-use-nslog-on-production-code
Expand Down

0 comments on commit 436dc03

Please sign in to comment.