Fix build issue

This commit is contained in:
Arkadiusz Fal 2023-02-19 14:18:19 +01:00
parent 3d45aa357e
commit 48d14c623c

View File

@ -166,7 +166,6 @@ struct VideoCell: View {
HStack(spacing: Constants.channelDetailsStackSpacing) { HStack(spacing: Constants.channelDetailsStackSpacing) {
if !inChannelView, if !inChannelView,
let video,
let url = video.channel.thumbnailURLOrCached, let url = video.channel.thumbnailURLOrCached,
video != .fixture video != .fixture
{ {
@ -297,7 +296,6 @@ struct VideoCell: View {
HStack(spacing: 8) { HStack(spacing: 8) {
if channelOnThumbnail, if channelOnThumbnail,
!inChannelView, !inChannelView,
let video,
let url = video.channel.thumbnailURLOrCached, let url = video.channel.thumbnailURLOrCached,
video != .fixture video != .fixture
{ {
@ -388,8 +386,7 @@ struct VideoCell: View {
VStack { VStack {
HStack(alignment: .top) { HStack(alignment: .top) {
if saveHistory, if saveHistory,
watchedVideoStyle.isShowingBadge, watchedVideoStyle.isShowingBadge
let video
{ {
WatchView(watch: watch, videoID: video.videoID, duration: video.length) WatchView(watch: watch, videoID: video.videoID, duration: video.length)
} }