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

Commit 436dc03

Browse files
committed
Fix Xcode 9 lint warnings
1 parent e160718 commit 436dc03

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Iterable-iOS-SDK/IterableAPI.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ + (OnSuccessHandler)defaultOnSuccess:(NSString *)identifier
334334
335335
@abstract default failure completion handler; warning logs the result from Iterable
336336
337-
@param identifier an identifier for what succeeded; pass in something like the function name
337+
@param identifier an identifier for what failed; pass in something like the function name
338338
339339
@return a completion handler for use with `onFailure` of `sendRequest:onSuccess:onFailure:`
340340
*/
@@ -718,7 +718,7 @@ - (void)updateEmail:(NSString *)newEmail onSuccess:(OnSuccessHandler)onSuccess o
718718

719719
NSURLRequest *request = [self createRequestForAction:ENDPOINT_UPDATE_EMAIL withArgs:args];
720720
[self sendRequest:request onSuccess:^(NSDictionary *dictionary) {
721-
_email = newEmail;
721+
self->_email = newEmail;
722722
if (onSuccess) {
723723
onSuccess(dictionary);
724724
}

Iterable-iOS-SDK/IterableInAppHTMLViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,13 @@ - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)
236236
callbackURL = strNoURLScheme;
237237
}
238238
[self dismissViewControllerAnimated:NO completion:^{
239-
if (_customBlockCallback != nil) {
240-
_customBlockCallback(callbackURL);
239+
if (self.customBlockCallback != nil) {
240+
self.customBlockCallback(callbackURL);
241241
}
242242

243-
if (_trackParams != nil) {
243+
if (self.trackParams != nil) {
244244
IterableAPI *api = IterableAPI.sharedInstance;
245-
[api trackInAppClick:_trackParams.messageId buttonURL:destinationURL];
245+
[api trackInAppClick:self.trackParams.messageId buttonURL:destinationURL];
246246
}
247247
}];
248248
return NO;

Iterable-iOS-SDK/IterableLogging.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
////////////////////////
1515

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

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

0 commit comments

Comments
 (0)