Skip to content

Commit

Permalink
Did the else thing
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Aug 30, 2023
1 parent fe4073d commit cc5bba0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Tests/UnitTests/MockWebDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class MockWebDriver: WebDriver {
let responseData = try expectation.handler(requestBody)
if Request.Response.self == CodableNone.self {
return CodableNone() as! Request.Response
}
else {
} else {
return try JSONDecoder().decode(Request.Response.self, from: responseData!)
}
}
Expand Down

0 comments on commit cc5bba0

Please sign in to comment.