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
|
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
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue