From 324a0fc9469e9cfd8410881facd87c3c0e913071 Mon Sep 17 00:00:00 2001 From: Evgenii Kononenko Date: Tue, 12 Nov 2024 16:50:03 +0100 Subject: [PATCH] AuthLoggable - do not return in switch --- Sources/Auth/Model/AuthLoggable.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/Auth/Model/AuthLoggable.swift b/Sources/Auth/Model/AuthLoggable.swift index 4dddad62..273fbbf0 100644 --- a/Sources/Auth/Model/AuthLoggable.swift +++ b/Sources/Auth/Model/AuthLoggable.swift @@ -78,9 +78,8 @@ extension AuthLoggable { metadata[Logger.Metadata.errorKey] = .string(.init(describing: error)) } metadata[Self.metadataPreviousSubstatusKey] = "\(previousSubstatus ?? "nil")" - return metadata default: - return [:] + break } metadata[Logger.Metadata.codeKey] = .string(eventCode)