Skip to content

Commit

Permalink
🔀 Merge pull request #46 from MrSkwiggs/bleeding_edge
Browse files Browse the repository at this point in the history
🐛 Fix compilation error
  • Loading branch information
MrSkwiggs authored Jul 20, 2023
2 parents a8bc49a + 243dee7 commit 82e18cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Netswift/Core/NetswiftRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public extension NetswiftRequest where Self: NetswiftRoute, Body: Encodable {
var request = URLRequest(url: self.url)
request.setHTTPMethod(self.method)

if let body, let bodyEncoder {
if let body = body, let bodyEncoder = bodyEncoder {
do {
request.httpBody = try bodyEncoder.encode(body)
} catch {
Expand Down

0 comments on commit 82e18cf

Please sign in to comment.