From 992c628abd5fb7918d59cdd8de7ffe7f15085c3a Mon Sep 17 00:00:00 2001 From: Stefan Hausotte Date: Sun, 17 May 2026 21:40:51 +0200 Subject: [PATCH] refactor: fix linting issues --- Forji/Forji/Services/AuthenticationService.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Forji/Forji/Services/AuthenticationService.swift b/Forji/Forji/Services/AuthenticationService.swift index d59a82c..39948f1 100644 --- a/Forji/Forji/Services/AuthenticationService.swift +++ b/Forji/Forji/Services/AuthenticationService.swift @@ -221,19 +221,23 @@ enum SessionRestoreError: LocalizedError, Equatable { case .tokenExpired: "Your API token is expired or has been revoked. Please edit this instance and enter a new token." case .tokenPermissionDenied: - "Your API token does not have permission to access this account. Please edit this instance and enter a token with the required scopes." + "Your API token does not have permission to access this account. " + + "Please edit this instance and enter a token with the required scopes." case .serverUnavailable: "The Forgejo server returned an error while validating your token. Please try again later." case .serverNotFound: "The Forgejo server could not be found. Please check the instance URL." case .networkUnavailable: - "Forji could not reach the Forgejo server while validating your token. Please check your connection and try again." + "Forji could not reach the Forgejo server while validating your token. " + + "Please check your connection and try again." case .certificateError: - "Forji could not validate the server certificate. Enable self-signed certificates if this instance uses one." + "Forji could not validate the server certificate. " + + "Enable self-signed certificates if this instance uses one." case .invalidServerResponse: "The Forgejo server returned an invalid response while validating your token." case let .tokenValidationFailedHTTPStatus(statusCode): - "Forji could not validate your API token (HTTP \(statusCode)). Please edit this instance or try again later." + "Forji could not validate your API token (HTTP \(statusCode)). " + + "Please edit this instance or try again later." case .tokenValidationFailed: "Forji could not validate your API token. Please edit this instance or try again later." }