From 5895f955282dc038c2d1992af4a0935d65270e31 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Wed, 14 Feb 2024 07:30:43 -0800 Subject: [PATCH] fix the return statement --- Sources/XMTPiOS/Group.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/XMTPiOS/Group.swift b/Sources/XMTPiOS/Group.swift index 96c332ba..d5932dfb 100644 --- a/Sources/XMTPiOS/Group.swift +++ b/Sources/XMTPiOS/Group.swift @@ -185,11 +185,11 @@ public struct Group: Identifiable, Equatable, Hashable { try ffiMessage.fromFFI(client: client) } - return switch direction { + switch direction { case .ascending: - messages + return messages default: - messages.reversed() + return messages.reversed() } } @@ -212,11 +212,11 @@ public struct Group: Identifiable, Equatable, Hashable { try ffiMessage.fromFFIDecrypted(client: client) } - return switch direction { + switch direction { case .ascending: - messages + return messages default: - messages.reversed() + return messages.reversed() } }