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/ZipImporter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/ZipArchive/ZipImporter.swift') 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.") -- cgit v1.2.3-59-g8ed1b