Skip to content

Commit c069f06

Browse files
committed
f cleanup
1 parent 0dfefad commit c069f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5827,7 +5827,7 @@ where
58275827
pub fn pop_pending_event(&self) -> Option<events::Event> {
58285828
let _single_processor = self.pending_events_processor.lock().unwrap();
58295829
let mut events = self.pending_events.lock().unwrap();
5830-
if events.is_empty() { None } else { Some(events.pop_front().unwrap().0) }
5830+
events.pop_front().map(|(e, _)| e)
58315831
}
58325832

58335833
#[cfg(test)]

0 commit comments

Comments
 (0)