diff options
author | Roopesh Chander <roop@roopc.net> | 2018-12-11 00:30:33 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-12-11 00:34:22 +0530 |
commit | 15b6cf541205d935b6afd483af79078c14a21215 (patch) | |
tree | 0a71457f114cb1fcee74b35ab2e8e6d8a7f7bd59 /WireGuard/WireGuard/ZipArchive/ZipImporter.swift | |
parent | TunnelsManager: Don't act on status change on tunnelProviders we don't have (diff) | |
download | wireguard-apple-15b6cf541205d935b6afd483af79078c14a21215.tar.xz wireguard-apple-15b6cf541205d935b6afd483af79078c14a21215.zip |
Error handling: alertText() can be nil
Indicating that no alert is to be shown for that error.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/ZipArchive/ZipImporter.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift index 507a823..d281fb6 100644 --- a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift +++ b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift @@ -6,7 +6,7 @@ import UIKit enum ZipImporterError: WireGuardAppError { case noTunnelsInZipArchive - func alertText() -> (String, String) { + func alertText() -> (String, String)? { switch (self) { case .noTunnelsInZipArchive: return ("No tunnels in zip archive", "No .conf tunnel files were found inside the zip archive.") |