From 33c6e8632a28433c7d6774aa48def22aec6268b4 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Thu, 7 Apr 2022 16:42:27 +0900 Subject: [PATCH] format with running `SwiftFormat` --- OctoKit/Releases.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/OctoKit/Releases.swift b/OctoKit/Releases.swift index cfe49d51..ad887032 100644 --- a/OctoKit/Releases.swift +++ b/OctoKit/Releases.swift @@ -88,11 +88,13 @@ public extension Octokit { owner: String, repository: String, tag: String, - completion: @escaping (_ response: Result) -> Void) -> URLSessionDataTaskProtocol? { + completion: @escaping (_ response: Result) -> Void) -> URLSessionDataTaskProtocol? + { let router = ReleaseRouter.getReleaseByTag(configuration, owner, repository, tag) return router.load(session, dateDecodingStrategy: .formatted(Time.rfc3339DateFormatter), - expectedResultType: Release.self) { release, error in + expectedResultType: Release.self) + { release, error in if let error = error { completion(.failure(error)) } else if let release = release {