Skip to content

Commit

Permalink
fix: compile errors for swift 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
alephao committed Sep 14, 2024
1 parent 4e5abfa commit 5aa492b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/HTTPTypesHtmx/Values/HxPushUrl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public enum HxPushUrl: Equatable, CustomStringConvertible {

public var description: String {
switch self {
case .false: "false"
case .url(let raw): raw
case .false: return "false"
case .url(let raw): return raw
}
}
}
4 changes: 2 additions & 2 deletions Sources/HTTPTypesHtmx/Values/HxReplaceUrl.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ public enum HxReplaceUrl: Equatable, CustomStringConvertible {

public var description: String {
switch self {
case .false: "false"
case .url(let raw): raw
case .false: return "false"
case .url(let raw): return raw
}
}
}

0 comments on commit 5aa492b

Please sign in to comment.