Remove redundant nil coalescing

This commit is contained in:
woxtu 2022-11-16 12:21:08 +09:00
parent 7e04dd3d31
commit 675df849e3
2 changed files with 2 additions and 2 deletions

View File

@ -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
}
}()
}

View File

@ -468,7 +468,7 @@ extension StatusView.ViewModel {
pollCountdownDescription
)
.sink { pollVoteDescription, pollCountdownDescription in
statusView.pollVoteCountLabel.text = pollVoteDescription ?? "-"
statusView.pollVoteCountLabel.text = pollVoteDescription
statusView.pollCountdownLabel.text = pollCountdownDescription ?? "-"
}
.store(in: &disposeBag)