mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Use Swift 5.7 if-let style
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user