Skip to content

Commit

Permalink
fix use is_empty rather check len
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdillah committed Oct 21, 2023
1 parent 18434c0 commit c3679bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ impl Reedline {
return Ok(EventStatus::Handled);
}

if menu.get_values().len() == 0 {
if menu.get_values().is_empty() {
menu.menu_event(MenuEvent::Deactivate);
return Ok(EventStatus::Inapplicable);
}
Expand Down

0 comments on commit c3679bb

Please sign in to comment.