diff options
| author | Andrew Bulhak <andrew.bulhak@mullvad.net> | 2024-04-11 18:41:46 +0200 |
|---|---|---|
| committer | Bug Magnet <marco.nikic@mullvad.net> | 2024-04-17 12:40:40 +0200 |
| commit | 9af50acb7e20c7d6f50b7faf40969bb63d7e4ccf (patch) | |
| tree | 4a279bc3a42ef918e02cc75c90f24cbcc524245d | |
| parent | bafb84a0bddf56962e0940e13a39cce131a49f83 (diff) | |
| download | mullvadvpn-9af50acb7e20c7d6f50b7faf40969bb63d7e4ccf.tar.xz mullvadvpn-9af50acb7e20c7d6f50b7faf40969bb63d7e4ccf.zip | |
Make changes suggested in PR
| -rw-r--r-- | ios/MullvadVPN/AppDelegate.swift | 2 | ||||
| -rw-r--r-- | ios/MullvadVPNTests/LoggingTests.swift | 12 |
2 files changed, 1 insertions, 13 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift index 88c9b0e4e6..291ed2b46b 100644 --- a/ios/MullvadVPN/AppDelegate.swift +++ b/ios/MullvadVPN/AppDelegate.swift @@ -360,8 +360,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD loggerBuilder.install() logger = Logger(label: "AppDelegate") - - loggerBuilder.logLevel = .debug } private func addApplicationNotifications(application: UIApplication) { diff --git a/ios/MullvadVPNTests/LoggingTests.swift b/ios/MullvadVPNTests/LoggingTests.swift index 337f850560..af0a9e857a 100644 --- a/ios/MullvadVPNTests/LoggingTests.swift +++ b/ios/MullvadVPNTests/LoggingTests.swift @@ -19,17 +19,7 @@ class MullvadLoggingTests: XCTestCase { // Add a teardown block to delete any file at `fileURL`. addTeardownBlock { - do { - let fileManager = FileManager.default - // Check that the file exists before trying to delete it. - if fileManager.fileExists(atPath: fileURL.path) { - // Perform the deletion. - try fileManager.removeItem(at: fileURL) - } - } catch { - // Treat any errors during file deletion as a test failure. - XCTFail("Error while deleting temporary file: \(error)") - } + try? FileManager.default.removeItem(at: fileURL) } // Return the temporary file URL for use in a test method. |
