Use Swift 5.7 if-let style

This commit is contained in:
Arkadiusz Fal
2022-09-28 16:27:01 +02:00
parent 8f96a7c5e0
commit a086a0f440
50 changed files with 114 additions and 114 deletions

View File

@@ -280,7 +280,7 @@ struct VideoCell: View {
}
}
if let time = time, !timeOnThumbnail {
if let time, !timeOnThumbnail {
Spacer()
HStack(spacing: 2) {
@@ -403,7 +403,7 @@ struct VideoCell: View {
if timeOnThumbnail,
!video.live,
let time = time
let time
{
DetailBadge(text: time, style: .prominent)
}
@@ -429,7 +429,7 @@ struct VideoCell: View {
}
.retryOnAppear(true)
.onFailure { _ in
guard let url = url else { return }
guard let url else { return }
thumbnails.insertUnloadable(url)
}