diff options
author | 2018-12-11 00:30:33 +0530 | |
---|---|---|
committer | 2018-12-11 00:34:22 +0530 | |
commit | 15b6cf541205d935b6afd483af79078c14a21215 (patch) | |
tree | 0a71457f114cb1fcee74b35ab2e8e6d8a7f7bd59 /WireGuard/WireGuard/ZipArchive/ZipExporter.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 'WireGuard/WireGuard/ZipArchive/ZipExporter.swift')
-rw-r--r-- | WireGuard/WireGuard/ZipArchive/ZipExporter.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/ZipArchive/ZipExporter.swift b/WireGuard/WireGuard/ZipArchive/ZipExporter.swift index a4e9d7a..4f57613 100644 --- a/WireGuard/WireGuard/ZipArchive/ZipExporter.swift +++ b/WireGuard/WireGuard/ZipArchive/ZipExporter.swift @@ -6,7 +6,7 @@ import UIKit enum ZipExporterError: WireGuardAppError { case noTunnelsToExport - func alertText() -> (String, String) { + func alertText() -> (String, String)? { switch (self) { case .noTunnelsToExport: return ("Nothing to export", "There are no tunnels to export") |