Skip to content

Commit

Permalink
Merge pull request #91 from AndrewSB/patch-1
Browse files Browse the repository at this point in the history
DataLoader: don't wrap an already Encodable value in AnyEncodable
  • Loading branch information
kean authored Apr 25, 2024
2 parents 74dba20 + 2ba0f8a commit 623a3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Get/DataLoader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func encode(_ value: Encodable, using encoder: JSONEncoder) async throws -> Data
return string.data(using: .utf8)
} else {
return try await Task.detached {
try encoder.encode(AnyEncodable(value: value))
try encoder.encode(value)
}.value
}
}
Expand Down

0 comments on commit 623a3df

Please sign in to comment.