From 8a916beb389f84e21ed1aaf0d246801cd6acd73c Mon Sep 17 00:00:00 2001 From: Eric Kuck Date: Wed, 12 Dec 2018 21:09:52 -0600 Subject: More formatting nits and cyclomatic complexity fixes Signed-off-by: Eric Kuck --- WireGuard/WireGuard/WireGuardAppError.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WireGuard/WireGuard/WireGuardAppError.swift') diff --git a/WireGuard/WireGuard/WireGuardAppError.swift b/WireGuard/WireGuard/WireGuardAppError.swift index 3e4707d..ba83ac5 100644 --- a/WireGuard/WireGuard/WireGuardAppError.swift +++ b/WireGuard/WireGuard/WireGuardAppError.swift @@ -2,5 +2,6 @@ // Copyright © 2018 WireGuard LLC. All Rights Reserved. protocol WireGuardAppError: Error { - func alertText() -> (/* title */ String, /* message */ String)? + typealias AlertText = (title: String, message: String) + func alertText() -> AlertText } -- cgit v1.2.3-59-g8ed1b