forked from zelo72/mastodon-ios
chore: remove implicit optional unwrap
This commit is contained in:
parent
2ebb12b86e
commit
cb2b478bff
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue