Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run swift-format #12

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Features/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ let package = Package(
.target(
name: "Models",
dependencies: [
.product(name: "LocalDate", package: "swift-local-date"),
.product(name: "LocalDate", package: "swift-local-date")
]
),
.testTarget(
Expand Down
4 changes: 2 additions & 2 deletions Features/Sources/Models/AstronomyPicture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public struct AstronomyPicture: Equatable, Sendable {
public var mediaType: MediaType
public var title: String
public var url: URL?

public init(
copyright: String? = nil,
date: LocalDate? = nil,
Expand All @@ -27,7 +27,7 @@ public struct AstronomyPicture: Equatable, Sendable {
self.title = title
self.url = url
}

public init(response: Response) {
self.init(
copyright: response.copyright,
Expand Down
2 changes: 1 addition & 1 deletion Features/Sources/Models/MediaType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ public enum MediaType: Sendable {
case video
case other
case unknown

init(string: String) {
switch string {
case "image":
Expand Down
4 changes: 2 additions & 2 deletions Features/Tests/ModelsTests/AstronomyPictureTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ struct AstronomyPictureTests {
title: "title",
url: "https://example.com/url"
)

let model = AstronomyPicture(
copyright: "copyright",
date: LocalDate(year: 2024, month: 1, day: 1),
Expand All @@ -27,7 +27,7 @@ struct AstronomyPictureTests {
title: "title",
url: URL(string: "https://example.com/url")!
)

#expect(AstronomyPicture(response: response) == model)
}
}