Swift cleanup: don't capture case values only to ignore them in switch statements

Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Bryan Montz authored and William Casarin committed 2023-07-16 07:37:55 -07:00
1 parent 3d6909bf62
commit 6bf5293701
7 files changed
+28 -28

No files matched your search

+2 -2
View File
@@ -62,11 +62,11 @@ class EventsModel: ObservableObject {
switch nev {
case .event(_, let ev):
handle_event(relay_id: relay_id, ev: ev)
case .notice(_):
case .notice:
break
case .ok:
break
case .eose(_):
case .eose:
load_profiles(profiles_subid: profiles_id, relay_id: relay_id, load: .from_events(events), damus_state: state)
}
}