Skip to content

Commit 70558c9

Browse files
authored
RC: fix internal API nullability issue caught by analyzer (#13712)
1 parent 56b1bda commit 70558c9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

FirebaseRemoteConfig/Sources/Private/RCNConfigFetch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ typedef void (^RCNConfigFetchCompletion)(FIRRemoteConfigFetchStatus status,
5353
/// @param expirationDuration Expiration duration, in seconds.
5454
/// @param completionHandler Callback handler.
5555
- (void)fetchConfigWithExpirationDuration:(NSTimeInterval)expirationDuration
56-
completionHandler:(FIRRemoteConfigFetchCompletion)completionHandler;
56+
completionHandler:
57+
(_Nullable FIRRemoteConfigFetchCompletion)completionHandler;
5758

5859
/// Fetches config data immediately, keyed by namespace. Completion block will be called on the main
5960
/// queue.

FirebaseRemoteConfig/Sources/RCNConfigFetch.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ - (void)dealloc {
131131
#pragma mark - Fetch Config API
132132

133133
- (void)fetchConfigWithExpirationDuration:(NSTimeInterval)expirationDuration
134-
completionHandler:(FIRRemoteConfigFetchCompletion)completionHandler {
134+
completionHandler:
135+
(_Nullable FIRRemoteConfigFetchCompletion)completionHandler {
135136
// Note: We expect the googleAppID to always be available.
136137
BOOL hasDeviceContextChanged =
137138
FIRRemoteConfigHasDeviceContextChanged(_settings.deviceContext, _options.googleAppID);

0 commit comments

Comments
 (0)