refactor: fix linting issues

This commit is contained in:
Stefan Hausotte 2026-05-17 21:40:51 +02:00
parent 6faf3ad986
commit 992c628abd

View file

@ -221,19 +221,23 @@ enum SessionRestoreError: LocalizedError, Equatable {
case .tokenExpired: case .tokenExpired:
"Your API token is expired or has been revoked. Please edit this instance and enter a new token." "Your API token is expired or has been revoked. Please edit this instance and enter a new token."
case .tokenPermissionDenied: 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: case .serverUnavailable:
"The Forgejo server returned an error while validating your token. Please try again later." "The Forgejo server returned an error while validating your token. Please try again later."
case .serverNotFound: case .serverNotFound:
"The Forgejo server could not be found. Please check the instance URL." "The Forgejo server could not be found. Please check the instance URL."
case .networkUnavailable: 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: 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: case .invalidServerResponse:
"The Forgejo server returned an invalid response while validating your token." "The Forgejo server returned an invalid response while validating your token."
case let .tokenValidationFailedHTTPStatus(statusCode): 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: case .tokenValidationFailed:
"Forji could not validate your API token. Please edit this instance or try again later." "Forji could not validate your API token. Please edit this instance or try again later."
} }