Skip to content

Commit 863d3a2

Browse files
jakepetroulesp2
authored andcommitted
Fix string interpolation warning
1 parent 1daccd2 commit 863d3a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/iOS/OAuth2WebViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ open class OAuth2WebViewController: UIViewController, WKNavigationDelegate {
4646
/// The URL string to intercept and respond to.
4747
var interceptURLString: String? {
4848
didSet(oldURL) {
49-
if nil != interceptURLString {
50-
if let url = URL(string: interceptURLString!) {
49+
if let interceptURLString = interceptURLString {
50+
if let url = URL(string: interceptURLString) {
5151
interceptComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
5252
}
5353
else {
5454
oauth?.logger?.debug("OAuth2", msg: "Failed to parse URL \(interceptURLString!), discarding")
55-
interceptURLString = nil
55+
self.interceptURLString = nil
5656
}
5757
}
5858
else {

0 commit comments

Comments
 (0)