chore: remove implicit optional unwrap

This commit is contained in:
CMK 2021-02-04 14:57:16 +08:00
parent 2ebb12b86e
commit cb2b478bff
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ extension Toot.Property {
spoilerText: entity.spoilerText,
reblogsCount: NSNumber(value: entity.reblogsCount),
favouritesCount: NSNumber(value: entity.favouritesCount),
repliesCount: (entity.repliesCount != nil) ? NSNumber(value: entity.repliesCount!) : nil,
repliesCount: entity.repliesCount.flatMap { NSNumber(value: $0) },
url: entity.uri,
inReplyToID: entity.inReplyToID,
inReplyToAccountID: entity.inReplyToAccountID,