소스 검색

minor clean up

cyberta 2 년 전
부모
커밋
008941f5bb
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  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
         }