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/ZipArchive.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/ZipArchive/ZipArchive.swift') diff --git a/WireGuard/WireGuard/ZipArchive/ZipArchive.swift b/WireGuard/WireGuard/ZipArchive/ZipArchive.swift index fe633d0..a849daa 100644 --- a/WireGuard/WireGuard/ZipArchive/ZipArchive.swift +++ b/WireGuard/WireGuard/ZipArchive/ZipArchive.swift @@ -8,7 +8,7 @@ enum ZipArchiveError: WireGuardAppError { case cantOpenOutputZipFileForWriting case badArchive - func alertText() -> (String, String) { + func alertText() -> (String, String)? { switch (self) { case .cantOpenInputZipFile: return ("Unable to read zip archive", "The zip archive could not be read.") -- cgit v1.2.3-59-g8ed1b