From 15b6cf541205d935b6afd483af79078c14a21215 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Tue, 11 Dec 2018 00:30:33 +0530 Subject: Error handling: alertText() can be nil Indicating that no alert is to be shown for that error. Signed-off-by: Roopesh Chander --- WireGuard/WireGuard/ZipArchive/ZipExporter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/ZipArchive/ZipExporter.swift') 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") -- cgit v1.2.3-59-g8ed1b