Skip to content

Commit

Permalink
Fix nullability annotation for -[OIDExternalUserAgentIOS init] (openi…
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwoc authored Oct 4, 2023
1 parent 36c1df0 commit b376a87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/AppAuth/iOS/OIDExternalUserAgentIOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN
API_UNAVAILABLE(macCatalyst)
@interface OIDExternalUserAgentIOS : NSObject<OIDExternalUserAgent>

- (nullable instancetype)init API_AVAILABLE(ios(11))
- (null_unspecified instancetype)init API_AVAILABLE(ios(11))
__deprecated_msg("This method will not work on iOS 13, use "
"initWithPresentingViewController:presentingViewController");

Expand Down
2 changes: 1 addition & 1 deletion Source/AppAuth/iOS/OIDExternalUserAgentIOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ @implementation OIDExternalUserAgentIOS {
#pragma clang diagnostic pop
}

- (nullable instancetype)init {
- (null_unspecified instancetype)init {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnonnull"
return [self initWithPresentingViewController:nil];
Expand Down

0 comments on commit b376a87

Please sign in to comment.