Merge pull request #128 from jellyfin/create-pull-request/patch

[ci] SwiftLint
This commit is contained in:
aiden 3 2021-08-06 15:30:26 -06:00 committed by GitHub
commit 9eec866897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -69,8 +69,7 @@ struct SeriesItemView: View {
.padding(.horizontal, 16)
}
if let genreItems = viewModel.item.genreItems,
!genreItems.isEmpty
{
!genreItems.isEmpty {
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 8) {
Text("Genres:").font(.callout).fontWeight(.semibold)
@ -105,8 +104,7 @@ struct SeriesItemView: View {
.padding(.horizontal, 8)
LazyVStack(alignment: .leading, spacing: 0) {
if let people = viewModel.item.people,
!people.isEmpty
{
!people.isEmpty {
Text("CAST")
.font(.callout).fontWeight(.semibold)
.padding(.bottom, 8)
@ -127,8 +125,7 @@ struct SeriesItemView: View {
Text(person.name ?? "").font(.footnote).fontWeight(.regular).lineLimit(1)
.frame(width: 100).foregroundColor(Color.primary)
if let role = person.role,
!role.isEmpty
{
!role.isEmpty {
Text(role).font(.caption).fontWeight(.medium).lineLimit(1)
.foregroundColor(Color.secondary).frame(width: 100)
}
@ -142,8 +139,7 @@ struct SeriesItemView: View {
.padding(.bottom, 16)
}
if let studios = viewModel.item.studios,
!studios.isEmpty
{
!studios.isEmpty {
ScrollView(.horizontal, showsIndicators: false) {
LazyHStack(spacing: 16) {
Text("Studios:").font(.callout).fontWeight(.semibold)