Skip to content

Commit

Permalink
format with running SwiftFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Apr 7, 2022
1 parent ad8473d commit 33c6e86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OctoKit/Releases.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,13 @@ public extension Octokit {
owner: String,
repository: String,
tag: String,
completion: @escaping (_ response: Result<Release, Error>) -> Void) -> URLSessionDataTaskProtocol? {
completion: @escaping (_ response: Result<Release, Error>) -> 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 {
Expand Down

0 comments on commit 33c6e86

Please sign in to comment.