Skip to content

Commit

Permalink
Fix ResponseDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawright11 committed Dec 10, 2023
1 parent 350dec4 commit 40e9958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PapyrusCore/Sources/ResponseDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ public protocol ResponseDecoder: KeyMappable {
// MARK: application/json

extension ResponseDecoder where Self == JSONDecoder {
public static var json: Self {
JSONDecoder()
public static func json(_ decoder: JSONDecoder) -> Self {
decoder
}
}

Expand Down

0 comments on commit 40e9958

Please sign in to comment.