Skip to content

Commit

Permalink
bugfix: 修改dictionary判断
Browse files Browse the repository at this point in the history
  • Loading branch information
peanutgao committed May 8, 2017
1 parent 9b31b0e commit 0069b1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file not shown.
3 changes: 1 addition & 2 deletions Demo/YSNurse/YSNurse/NSDictionary+Nurse.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ + (instancetype)ys_dictionaryWithObjects:(const id _Nonnull __unsafe_unretained
/// initWithObjects:forKeys:
- (instancetype)ys_initWithObjects:(NSArray<id> *)objects forKeys:(NSArray<id <NSCopying>> *)keys {
if (keys.count == 0) {
YS_NURSE_PARAM_NIL_ASSERT;
return nil;
return [self ys_initWithObjects:objects forKeys:keys];
}

NSMutableArray *safeKeysM = keys.mutableCopy;
Expand Down

0 comments on commit 0069b1b

Please sign in to comment.