Merge pull request #600 from woxtu/nil-coalescing
Remove redundant nil coalescing
This commit is contained in:
commit
7aed050ded
|
@ -86,7 +86,7 @@ extension SettingsToggleTableViewCell {
|
|||
return nil
|
||||
default:
|
||||
// set tint black for Light Mode
|
||||
return self.contentView.window?.tintColor ?? nil
|
||||
return self.contentView.window?.tintColor
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
|
|
@ -456,7 +456,7 @@ extension StatusView.ViewModel {
|
|||
pollCountdownDescription
|
||||
)
|
||||
.sink { pollVoteDescription, pollCountdownDescription in
|
||||
statusView.pollVoteCountLabel.text = pollVoteDescription ?? "-"
|
||||
statusView.pollVoteCountLabel.text = pollVoteDescription
|
||||
statusView.pollCountdownLabel.text = pollCountdownDescription ?? "-"
|
||||
}
|
||||
.store(in: &disposeBag)
|
||||
|
|
Loading…
Reference in New Issue