Skip to content

Commit

Permalink
Add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
barijaona committed Sep 7, 2017
1 parent 2bdb9f5 commit f048f09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Database.m
Expand Up @@ -1779,8 +1779,9 @@ -(void)initFolderArray
NSInteger newItemId = [results stringForColumnIndex:0].integerValue;
NSInteger newParentId = [results stringForColumnIndex:1].integerValue;
NSString * name = [results stringForColumnIndex:2];
if (name == nil) // Paranoid check because of https://github.com/ViennaRSS/vienna-rss/issues/877
name = [Database untitledFeedFolderName];
if (name == nil) { // Paranoid check because of https://github.com/ViennaRSS/vienna-rss/issues/877
name = [Database untitledFeedFolderName];
}
NSInteger unreadCount = [results stringForColumnIndex:3].integerValue;
NSDate * lastUpdate = [NSDate dateWithTimeIntervalSince1970:[results stringForColumnIndex:4].doubleValue];
NSInteger type = [results stringForColumnIndex:5].integerValue;
Expand Down

0 comments on commit f048f09

Please sign in to comment.