From 2190c51e153946727153f9b3693ba3fc82b159fa Mon Sep 17 00:00:00 2001 From: Stef Kors Date: Fri, 1 Nov 2024 19:36:20 +0100 Subject: [PATCH] fix --- Shared/UserInterface/Models/PipelineStatus.swift | 4 ++-- Shared/UserInterface/Views/MergeRequestRowView.swift | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Shared/UserInterface/Models/PipelineStatus.swift b/Shared/UserInterface/Models/PipelineStatus.swift index 590e4d6..babd9fa 100644 --- a/Shared/UserInterface/Models/PipelineStatus.swift +++ b/Shared/UserInterface/Models/PipelineStatus.swift @@ -33,7 +33,7 @@ enum PipelineStatus: String, Codable, Equatable { case manual = "MANUAL" /// Pipeline is scheduled to run. case scheduled = "SCHEDULED" - + static func from(_ state: GitHub.CheckStatusState?) -> Self? { switch state { case .pending: return .pending @@ -45,7 +45,7 @@ enum PipelineStatus: String, Codable, Equatable { case .none: return nil } } - + static func from(_ state: GitHub.CheckConclusionState?) -> Self? { switch state { case .success: return .success diff --git a/Shared/UserInterface/Views/MergeRequestRowView.swift b/Shared/UserInterface/Views/MergeRequestRowView.swift index 6840d1a..fe0cf5f 100644 --- a/Shared/UserInterface/Views/MergeRequestRowView.swift +++ b/Shared/UserInterface/Views/MergeRequestRowView.swift @@ -26,7 +26,6 @@ struct MergeRequestRowView: View { .truncationMode(.middle) .padding(.trailing - ) HorizontalMergeRequestSubRowView(request: request)