Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix static code analysis issues #558

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Adjust/ADJUtil.m
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ + (BOOL)deleteFileInPath:(NSString *)filePath {
}
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
BOOL exists = (BOOL)[man performSelector:selExi withObject:filePath];
BOOL exists = [[man performSelector:selExi withObject:filePath] boolValue];
#pragma clang diagnostic pop
if (!exists) {
// [[ADJAdjustFactory logger] verbose:@"File does not exist at path %@", filePath];
Expand Down Expand Up @@ -1088,7 +1088,7 @@ + (BOOL)trackingEnabled {
if (![manager respondsToSelector:selEnabled]) {
return NO;
}
BOOL enabled = (BOOL)[manager performSelector:selEnabled];
BOOL enabled = [[manager performSelector:selEnabled] boolValue];
return enabled;
#pragma clang diagnostic pop
#endif
Expand Down Expand Up @@ -1253,7 +1253,7 @@ + (int)attStatus {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunguarded-availability"
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
return (int)[appTrackingClass performSelector:selAuthorization];
return [[appTrackingClass performSelector:selAuthorization] intValue];
#pragma clang diagnostic pop
}
}
Expand Down