Skip to content

Commit 375ed68

Browse files
committed
Fix unable to add urls
This was caused by the swift3 conversion. This is a subtle change in swift3, see https://stackoverflow.com/a/39537558/158525 Explicitly unwrapping it fixes the issue.
1 parent 5f61c1c commit 375ed68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Fetch/AddFilesViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ class AddFilesViewController: UIViewController, UITextViewDelegate {
170170

171171
} else {
172172

173-
let url = textView.text
174-
var params: [String:Any] = ["oauth_token": "\(Putio.accessToken!)", "url": url as Any, "extract": "true"]
173+
let url = textView.text!
174+
var params = ["oauth_token": "\(Putio.accessToken!)", "url": url, "extract": "true"]
175175

176176
// load the save_parent_id from the visible view controller
177177
let vc = folderPickerController!.visibleViewController as! FolderSelectTableViewController

0 commit comments

Comments
 (0)