Skip to content

Commit dbe4658

Browse files
authored
refactor: Resolve analyzer warning of returning nil value (#1622)
1 parent 25ff0cd commit dbe4658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parse/Parse/Internal/PFDateFormatter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ - (void)dealloc {
7070
///--------------------------------------
7171

7272
- (NSString *)preciseStringFromDate:(NSDate *)date {
73-
__block NSString *string = nil;
73+
__block NSString *string = @"";
7474
NSTimeInterval interval = date.timeIntervalSince1970;
7575
dispatch_sync(_synchronizationQueue, ^{
7676
sqlite3_bind_double(self->_dateToStringStatement, 1, interval);

0 commit comments

Comments
 (0)