Skip to content

Commit

Permalink
switch expressions are 5.9 :(
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Sep 20, 2023
1 parent a9e7ad8 commit 7cb4832
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ extension Foundation.URLRequest {
}
}

httpBody = switch sdkRequest.body {
case .data(let data): data
case .stream(let stream): stream.toBytes().getData()
case .none: nil
switch sdkRequest.body {
case .data(let data): httpBody = data
case .stream(let stream): httpBody = stream.toBytes().getData()
case .none: break
}
}
}
Expand Down

0 comments on commit 7cb4832

Please sign in to comment.