driveby compile warning fixes
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -375,6 +375,8 @@ class HomeModel: ContactsDelegate {
|
|||||||
boost_ev_id = inner_ev.id
|
boost_ev_id = inner_ev.id
|
||||||
|
|
||||||
Task {
|
Task {
|
||||||
|
// NOTE (jb55): remove this after nostrdb update, since nostrdb
|
||||||
|
// processess reposts when note is ingested
|
||||||
guard validate_event(ev: inner_ev) == .ok else {
|
guard validate_event(ev: inner_ev) == .ok else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -394,7 +396,7 @@ class HomeModel: ContactsDelegate {
|
|||||||
switch self.damus_state.boosts.add_event(ev, target: e) {
|
switch self.damus_state.boosts.add_event(ev, target: e) {
|
||||||
case .already_counted:
|
case .already_counted:
|
||||||
break
|
break
|
||||||
case .success(let n):
|
case .success(_):
|
||||||
notify(.update_stats(note_id: e))
|
notify(.update_stats(note_id: e))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -403,7 +405,7 @@ class HomeModel: ContactsDelegate {
|
|||||||
switch damus_state.quote_reposts.add_event(ev, target: target) {
|
switch damus_state.quote_reposts.add_event(ev, target: target) {
|
||||||
case .already_counted:
|
case .already_counted:
|
||||||
break
|
break
|
||||||
case .success(let n):
|
case .success(_):
|
||||||
notify(.update_stats(note_id: target))
|
notify(.update_stats(note_id: target))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user