Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit 0dce7f8

Browse files
authored
Resolve a static analyzer warning. (#124)
The warning was: nil passed to a callee that requires a non-null 3rd parameter This warning was correctly identifying that the public API for the animator was mis-typed as nonnull. The API has been updated to reflect the fact that a nil value is accepted.
1 parent ecb7541 commit 0dce7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/private/MDMAnimationRegistrar.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// executed.
2626
- (void)addAnimation:(nonnull CABasicAnimation *)animation
2727
toLayer:(nonnull CALayer *)layer
28-
forKey:(nonnull NSString *)key
28+
forKey:(nullable NSString *)key
2929
completion:(void(^ __nullable)(BOOL))completion;
3030

3131
// For every active animation, reads the associated layer's presentation layer key path and writes

0 commit comments

Comments
 (0)