Merge pull request #600 from woxtu/nil-coalescing

Remove redundant nil coalescing
This commit is contained in:
Marcus Kida 2022-11-29 14:41:52 +01:00 committed by GitHub
commit 7aed050ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ extension SettingsToggleTableViewCell {
return nil return nil
default: default:
// set tint black for Light Mode // set tint black for Light Mode
return self.contentView.window?.tintColor ?? nil return self.contentView.window?.tintColor
} }
}() }()
} }

View File

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