Skip to content

Commit

Permalink
fix the return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Feb 14, 2024
1 parent 344972a commit 5895f95
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/XMTPiOS/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}

Expand All @@ -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()
}

}
Expand Down

0 comments on commit 5895f95

Please sign in to comment.