Skip to content

Commit

Permalink
去除assert
Browse files Browse the repository at this point in the history
  • Loading branch information
NianJi committed Apr 22, 2019
1 parent 07fb7d7 commit 7531846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coobjc/promise/COPromise.m
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ - (void)fulfill:(id)value {
_observers = nil;
}
else{
NSAssert(NO, @"Promise fulfill multitimes, you should check your logic");
// NSAssert(NO, @"Promise fulfill multitimes, you should check your logic");
return;
}

Expand Down Expand Up @@ -174,7 +174,7 @@ - (void)reject:(NSError *)error {
_observers = nil;
}
else{
NSAssert(NO, @"Promise reject multitimes, you should check your logic");
// NSAssert(NO, @"Promise reject multitimes, you should check your logic");
return;
}

Expand Down

0 comments on commit 7531846

Please sign in to comment.