aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
diff options
context:
space:
mode:
Diffstat (limited to 'WireGuard/WireGuard/ZipArchive/ZipImporter.swift')
-rw-r--r--WireGuard/WireGuard/ZipArchive/ZipImporter.swift7
1 files changed, 2 insertions, 5 deletions
diff --git a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
index 523614b..e87633c 100644
--- a/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
+++ b/WireGuard/WireGuard/ZipArchive/ZipImporter.swift
@@ -6,11 +6,8 @@ import UIKit
enum ZipImporterError: WireGuardAppError {
case noTunnelsInZipArchive
- func alertText() -> AlertText {
- switch self {
- case .noTunnelsInZipArchive:
- return ("No tunnels in zip archive", "No .conf tunnel files were found inside the zip archive.")
- }
+ var alertText: AlertText {
+ return ("No tunnels in zip archive", "No .conf tunnel files were found inside the zip archive.")
}
}