Browse Source

minor clean up

cyberta 2 năm trước cách đây
mục cha
commit
008941f5bb
1 tập tin đã thay đổi với 2 bổ sung3 xóa
  1. 2 3
      deltachat-ios/Controller/WelcomeViewController.swift

+ 2 - 3
deltachat-ios/Controller/WelcomeViewController.swift

@@ -579,10 +579,9 @@ class WelcomeContentView: UIView {
 
 extension WelcomeViewController: MediaPickerDelegate {
     func onDocumentSelected(url: NSURL) {
-        logger.debug("onDocumentsSelected: \(String(describing: url.relativePath))")
         // ensure we can access folders outside of the app's sandbox
-        let shouldStopAccessing = url.startAccessingSecurityScopedResource()
-        if shouldStopAccessing {
+        let isSecurityScopedResource = url.startAccessingSecurityScopedResource()
+        if isSecurityScopedResource {
             securityScopedResource = url
         }